Re: Applescript in the terminal (fwd)
Re: Applescript in the terminal (fwd)
- Subject: Re: Applescript in the terminal (fwd)
- From: Doug McNutt <email@hidden>
- Date: Fri, 19 Apr 2013 12:53:43 -0600
At 10:55 -0400 4/19/13, <email@hidden> wrote, in part:
>option+command+key
>
>Also how does one do such keys as the arrow and other related keys and f1 - f12 keys etc.? Which brings me to the question of a source on the web where applescript keystroke representations might be listed, and applescript commands in general?
Shells understand the convention about numeric quantities starting with a 0 (zero) are octal or hexadecimal if it's 0X. I donno if it will work out but it's worth a try to figure the actual character in hex. The international UTF selector might help.
>I lied, I just thought of one more question. Can one compile an applescript from within terminal from a simple text file?
osascript will accept a path to a file of Applescript commands as an argument.
I find it useful to use the << convention to put lines of code in line as a "Here" document
osascript << END
Multiline Applescript commands as they would appear in the script editor
END
# The word "END" can be pretty much any combination of case sensitive ASCII characters.
You can also pipe text to osascript
cat ApplescriptTextFile | osascript
What you can't do is to compile a script and save the compiled version as an executable binary.
--
Fe++
// \
Fe++ Fe++
| ||
Fe++ Fe++
\\ /
Fe++
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden