AppleScript to write script
AppleScript to write script
- Subject: AppleScript to write script
- From: Steve Suranie <email@hidden>
- Date: Thu, 20 Apr 2006 14:17:28 -0400
- Thread-topic: AppleScript to write script
I'm trying to script Script Editor to write a series of folder actions and
attach them to folders. I can write the content of the script but when I go
to do the Save As I get an NSInternalScriptError
set FAPath to "Macintosh HD:Library:Scripts:Folder Actions Scripts:"
if not (exists FAPath) then
display dialog "WTF"
else
tell application "Script Editor"
make new document
tell front document
set contents to "on adding folder items to this_folder after
receiving these_items" & return & "display dialog \"Items added\"" & return
& "end adding folder items to"
compile
try
save as script in FAPath
on error errMsg
display dialog errMsg
end try
end tell
end tell
end if
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden