Re: Generating applescript files
Re: Generating applescript files
- Subject: Re: Generating applescript files
- From: Alex Robinson <email@hidden>
- Date: Thu, 16 May 2002 16:56:19 +0100
Matthew Smith wrote:
>
> If you are using Mac OS X you can use the shell command osacompile within a
>
> "do shell script" to turn it into a compiled script.
That is exactly what I need.
on MakeScript(theArgs)
-- code is the text of the script to be compiled
-- location is the posix path to save the script at
do shell script "osacompile -e '" & (code of theArgs) & "' -o " &
(location of theArgs)
end MakeScript
Is there a good reason why AppleScript can't do this directly? (I'm just
asking - I'm perfectly happy with the do shell script method)
Thanks to the others who responded (Andy, JJ and Paul)
_______________________________________________
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.