Re: AppleScript dictionary
Re: AppleScript dictionary
- Subject: Re: AppleScript dictionary
- From: Doug McNutt <email@hidden>
- Date: Fri, 12 Sep 2003 17:06:29 -0600
At 23:34 +0200 9/12/03, Emmanuel wrote:
>
At 11:53 AM -0600 12/09/03, Doug McNutt wrote:
>
>It would be nice to be able to send a quick email or even an instant message containing the text and ask an unsophisticated user to "run this" by dropping the text file, or the clipboard, on a previously prepared APPL (A nice name would be AS_cc.) that passes the commands to Script Editor.
>
>
Do you mean, something like a droplet with:
>
>
--------- pseudo-code
>
on open theFile
>
run script (read theFile)
>
end open
>
---------
>
?
Actually, I was thinking a little bit more than that. And. . . I'll bet you're about to tell me that Smile will do it all. I'd like to drop the text and have the result be a compiled script in APPLet form that can itself accept dropped files for execution. It would be a bit like offering a shell script that needs only a command line with a file path but is intelligible to a typical MUG member and doesn't require that "unthinkable" Terminal APPL
osascript will almost do what you suggest. But come to think of it, someone else has already asked "why are scripts compiled?". Set the execute bit on a TEXT file with a #!/Applications/AppleScript/Script\ Editor and double click it. Why not?
The subject is wrong. I have already started another "Script Editor dictionary" which seems to identify a more immediate problem.
<
ftp://ftp.macnauchtan.com/Software/LineEnds/> If and only if you're interested in my recent efforts.
--
--> As a citizen of the USA if you see a federal outlay expressed in $billion then multiply it by 4 to get your share in dollars. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.