• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Generating applescript files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Generating applescript files (From: JJ <email@hidden>)

  • Prev by Date: Re: Generating applescript files
  • Next by Date: Re: New Stack Overflow
  • Previous by thread: Re: Generating applescript files
  • Next by thread: Re: Generating applescript files
  • Index(es):
    • Date
    • Thread