scrpting Script Editor (save as script)
scrpting Script Editor (save as script)
- Subject: scrpting Script Editor (save as script)
- From: "Yvon Thoraval" <email@hidden>
- Date: 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.
I've tried :
tell application "Script Editor"
activate
open aFile
delay 1
set frontmost to true
try
-- save window 1 as script in my getAlias(aFile)
-- Erreur dans Éditeur de scripts : NSReceiversCantHandleCommandScriptError
-- save window 1 as script
-- Erreur dans Éditeur de scripts : NSReceiversCantHandleCommandScriptError
-- save window 1 as "script"
-- Erreur dans Éditeur de scripts : NSReceiversCantHandleCommandScriptError
tell window 1 to save as script in my getAlias(aFile)
-- Erreur dans Éditeur de scripts : NSReceiversCantHandleCommandScriptError
on error errMsg
display dialog errMsg
end try
close window 1
end tell
getting allways "NSReceiversCantHandleCommandScriptError" even if,
before saving, the Finder makes the new file.
here am i wrong ?
the purpose being to save a *.applescript file in a "*.scpt" file...
--
yvon
_______________________________________________
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