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: mark hunte on Jun 09, '05 06:58:15AM
Here a quick and small example to show potential.

Print.scpt

on run this_file
	
	tell application "TextWrangler"
		print this_file
		
	end tell
end run
When in terminal you can run this.

osascript Print.scpt /path/to/file/foo.txt

-

---
mh

[ Reply to This | # ]