Re: scrpting Script Editor (save as script)
Re: scrpting Script Editor (save as script)
- Subject: Re: scrpting Script Editor (save as script)
- From: "Nigel Garvey" <email@hidden>
- Date: Sat, 12 Jan 2008 21:48:57 +0000
"Yvon Thoraval" wrote on Sat, 12 Jan 2008 08:58:46 +0100:
>My goal :
>
>save a bunch of Applescript scripts already saved in text form
>(.applescript extension) as scripts (.scpt extension.
That can be done with StandardAdditions commands:
-- Assuming aFile is an alias to an ".applescript" text file.
set newPath to text 1 thru -12 of (aFile as Unicode text) & "scpt"
store script (run script ("script" & return & (read aFile) & return &
"end")) in file newPath
I suspect that 'read aFile' would have to be 'read aFile as Unicode text'
with an ".applescript" saved from Leopard, but I don't know for sure.
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden