AppleScript not found
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 5
- Joined: Sun Dec 13, 2020 5:43 pm
AppleScript not found
I am getting a message of "alternate language not found" when I try to run AppleScript commands in LiveCode.
put alternateLanguages() returns:
applescript debugger (twice) & javascript
I'm using the latest stable version of LiveCode Community on a Mac running OS Catalina. AppleScript is on the machine and works elsewhere. And I'm pretty sure this wasn't a problem on this machine previously.
I'm stumped. Any thoughts on what's going on here. Thanks.
put alternateLanguages() returns:
applescript debugger (twice) & javascript
I'm using the latest stable version of LiveCode Community on a Mac running OS Catalina. AppleScript is on the machine and works elsewhere. And I'm pretty sure this wasn't a problem on this machine previously.
I'm stumped. Any thoughts on what's going on here. Thanks.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- Posts: 5
- Joined: Sun Dec 13, 2020 5:43 pm
Re: AppleScript not found
Thanks for your quick reply.
"put the alternateLanguages" gets the same results: AppleScript debugger (2x) and javascript.
"put the alternateLanguages" gets the same results: AppleScript debugger (2x) and javascript.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: AppleScript not found
Very queer indeed."put the alternateLanguages" gets the same results
How about running some AppleScript in LiveCode and seeing, despite that odd result, whether it will run.
Here's my very silly example:
-
- Attachments
-
- Silly Beeper.livecode.zip
- Here's the stack.
- (22.96 KiB) Downloaded 151 times
-
- Posts: 5
- Joined: Sun Dec 13, 2020 5:43 pm
Re: AppleScript not found
Any "do" command "as AppleScript" results in "alternate language not found."
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: AppleScript not found
Hi.
First, a line of code that LC understands would not run just like that in appleScript. The example, rewritten slightly;
would give "Compiler error".
On my machine,
gives "AppleScript" and "JavaScript"
Not sure what "AppleScript Debugger" is, but someone will chime in.
Craig
First, a line of code that LC understands would not run just like that in appleScript. The example, rewritten slightly;
Code: Select all
on mouseUp
do fld 1 as applescript
answer the result
end mouseUp
On my machine,
Code: Select all
answer the alternateLanguages
Not sure what "AppleScript Debugger" is, but someone will chime in.
Craig
-
- Posts: 5
- Joined: Sun Dec 13, 2020 5:43 pm
Re: AppleScript not found
I'm still looking for help on this. Here are a few more clues.
If I sign in under a different account on the same Mac, AppleScript is found and works in LiveCode.
I've tried reinstalling LiveCode and removing the .plist from my preferences folder. Might there be any other way to start clean with LiveCode since the issue seems to be specific to this one account?
If I sign in under a different account on the same Mac, AppleScript is found and works in LiveCode.
I've tried reinstalling LiveCode and removing the .plist from my preferences folder. Might there be any other way to start clean with LiveCode since the issue seems to be specific to this one account?
-
- VIP Livecode Opensource Backer
- Posts: 135
- Joined: Tue Feb 23, 2010 10:53 pm
- Location: Saint Louis, Missouri USA
Re: AppleScript not found
I don't know if this will help you find an answer to your question but here is something you might try.
In the Applications/Utilities folder there is a program called: Script Editor.app
After starting it, look at the Preferences menu.
In the General tab, the drop-down menu will show what languages are available. This should let you know what the System is seeing. Maybe the AppleScript language was copied/duplicated on your system.
Also, in the General tab, I checked the last two check boxes to set the Script Editor so it appears in Finder's menu bar, at the top right, with the Script symbol and it's own menu. The Script menu is a handy way to access the Script Editor and various scripts.
Sorry if you already know this stuff.
Good luck tracking down the problem,
Bob
In the Applications/Utilities folder there is a program called: Script Editor.app
After starting it, look at the Preferences menu.
In the General tab, the drop-down menu will show what languages are available. This should let you know what the System is seeing. Maybe the AppleScript language was copied/duplicated on your system.
Also, in the General tab, I checked the last two check boxes to set the Script Editor so it appears in Finder's menu bar, at the top right, with the Script symbol and it's own menu. The Script menu is a handy way to access the Script Editor and various scripts.
Sorry if you already know this stuff.
Good luck tracking down the problem,
Bob
-
- Posts: 5
- Joined: Sun Dec 13, 2020 5:43 pm
Re: AppleScript not found
For anyone who may experience this issue, removing Script Debugger from ~Library>Components seems to resolve the issue.
I do not know what caused the issue in the first place. And if I run AppleScript Debugger, the component will repopulate in that folder.
I do not know what caused the issue in the first place. And if I run AppleScript Debugger, the component will repopulate in that folder.
-
- VIP Livecode Opensource Backer
- Posts: 346
- Joined: Mon Mar 01, 2010 7:13 pm
- Location: London, UK
- Contact:
Re: AppleScript not found
Out of interest, does that cause the problem to raise its head again?miltstevens wrote: ↑Sat Dec 19, 2020 2:16 amif I run AppleScript Debugger, the component will repopulate in that folder.
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist