Re: Generating applescript files
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.