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


Click here to return to the 'AppleScript and arguments' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
AppleScript and arguments
Authored by: jecwobble on Jan 21, '04 09:25:20AM

Can you pass an argument to an AppleScript and have access to it as either a variable or a property? If so, could you write a Mail rule that looks for emails from "Steve" then calls a more general AppleScript passing it "Steve" as an argument so that it uses Steve's name? Then you could write as many 'from' rules as you like, using only one AppleScript.

If you can't pass arguments, I suppose you could write a shell script that accepts one argument and uses it in an osascript call....



[ Reply to This | # ]