osascript shell commands using AppleScript
osascript shell commands using AppleScript
- Subject: osascript shell commands using AppleScript
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 24 Jun 2008 15:58:19 -0400
- Thread-topic: osascript shell commands using AppleScript
In Leopard, we are told that AppleScript allows use of "#" as an alternative
to "--" as a comment-to-end-of-line token, and that as a result shell
commands can be written using straight AppleScript by including the comment
#!usr/bin/osascript at the beginning and setting the file's execute bit.
Sure enough, it works.
But how do I capture shell variables like $1 and $2 when doing this? I'm
thinking of using AppleScript this way in a PackageMaker 3 shell script.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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