• 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
Export as script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Export as script


  • Subject: Export as script
  • From: Greg Strange <email@hidden>
  • Date: Fri, 17 Nov 2000 20:11:11 +0000

Hello all,

Can anyone direct me to some info about exporting text as a compiled
AppleScript? I want to take a sceries of text inputs and put them into a
completely separate script. So for instance,

set outScript to "tell application \"Finder\"" & return & "display dialog
\"Hello World!\"" & return & "end tell"

open for access file "outScriptFile" with write permission
write outScript to file "outScriptFile"
close access file "outScriptfile"

I have tried changing the file and creator types to a compiled script but
when I try and launch it, it fires off another script on the desktop.

Anyone have any ideas?

Greg Strange
--
If you liked WKRP, you'll hate Mouthful of Liquor.
Not for the faint of smart,
www.mouthfullofliquor.com


  • Follow-Ups:
    • Re: Export as script
      • From: Paul Berkowitz <email@hidden>
    • Re: Export as script
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: coerce lists to records
  • Next by Date: Re: Export as script
  • Previous by thread: Re: OSA Menu
  • Next by thread: Re: Export as script
  • Index(es):
    • Date
    • Thread