• 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: Paul Berkowitz <email@hidden>
  • Date: Thu, 16 May 2002 10:11:54 -0700

On 5/15/02 7:20 PM, "JJ" <email@hidden> wrote:

> If you're at mesozoic OS 9, you can try this (suppossed it works, too, in
> X):
> __________________
> script to_store
> beep 5
> end script
>
> tell application "Finder"
> set x to make file at desktop with properties {name:name of to_store,
> file type:"osas", creator type:"ToyS"}
> end tell
> store script to_store in file (x as text) replacing yes
> __________________


Very nice, JJ. If you're using AS 1.8.2b3 (and perhaps any version from 1.7
on?) you may need to use 'alias', not 'file' in the last line, since 'file'
is broken although it works in some Standard Additions like 'open for
access' where it has its own special type. Not sure about 'store script'.

--
Paul Berkowitz
_______________________________________________
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: OS X replacement for Script Scheduler
  • Previous by thread: Re: Generating applescript files
  • Next by thread: Re: Generating applescript files
  • Index(es):
    • Date
    • Thread