in applescript create time date action, run every minute...

Posted on
Fri Jun 14, 2013 11:24 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

in applescript create time date action, run every minute...

I am wrestling with this code:

tell application "IndigoServer"
make new time date action with properties {name:"xxx", days of week:"1111111"} -- works ok
set action type of action step 1 of time date action "xxx" to executeScript -- works ok
set script code of action step 1 of time date action "xxx" to "/Library/..../Indigo 6/Scripts/name_of_script.scpt" -- is put into script window as script as it should BUT would like to select a script file
end tell

==> how to add execute once per minutes
==> how to select script file to execute

any advice?

Karl

Posted on
Sat Jun 15, 2013 7:46 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: in applescript create time date action, run every minute

To execute every 1 minute:

Code: Select all
make new time date action with properties {name:"xxx", time trigger type:countdown, countdown delta:60}


You can't set a script file via AppleScript - I'd recommend just creating an action group that executes the file (manually) then just set the action to executeGroup and specify the group. This of course won't work if the script file needs to be dynamic.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 22 guests