Re: AppleScript to write script
Re: AppleScript to write script
- Subject: Re: AppleScript to write script
- From: Takaaki Naganoya <email@hidden>
- Date: Fri, 21 Apr 2006 11:17:20 +0900
- Thread-topic: AppleScript to write script
Scripting Script Editor make a lot of new usage of AppleScript. It is nice
technology.
I made "FTP Droplet Toaster" which make FTP droplet application by
controling Script Editor :-).
--FTP Droplet Toaster
http://www.appleco.jp/piyomarusoft/products_006.html
But scripting Script Editor is dangerous, too. Because such a script
sometimes forget the target application (in this case, target application is
Script Editor).
You have to add "using terms from" clause to prepare for forgetting target
application. Or use other Script Editing application to edit such a script.
Script Debugger is the best choice. Smile is wonderful environment, too.
--
Takaaki Naganoya
Piyomaru Software
http://www.appleco.jp/piyomarusoft/
On 06.4.21 3:17 AM, "Steve Suranie" <email@hidden> wrote:
> 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
>
_______________________________________________
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