Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Pass command-line arguments to AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Pass command-line arguments to AppleScript
Authored by: nomis on Jun 08, '05 06:35:44PM
Note that the entire script must be placed between the on run argv and end run.

[ Reply to This | # ]
10.4: Pass command-line arguments to AppleScript
Authored by: wgscott on Jun 09, '05 03:41:17AM

Hasn't this always worked if you just put the osascript in a shell script?



[ Reply to This | # ]
10.4: Pass command-line arguments to AppleScript
Authored by: Krioni on Jun 13, '05 09:09:20AM

Not the entire script: if you have properties, they'd go before the 'on run' line and if you have handlers (functions), they'd go outside of the run block as well. It's just similar to the main() function in C.



[ Reply to This | # ]