Red Sweater Forums
Discussions
Activity
Sign In
Edit Discussion
You can either ask a question or start a discussion. Choose what you want to do below.
Ask a Question
Start a New Discussion
Ask a Question
Start a New Discussion
Discussion Title
Category
FlexTime
(Oh, how meta!) So what I'm trying to do is to set up a set of AppleScripts so I can enter a time in text mode in Quicksilver and have FlexTime make a new (temporary) routine on the fly with a single action to count down the time entered, then run a script to display a message, play a sound, and close the routine as the finishing cue. I've got it almost all worked out: I have a script with which I can use Quicksilver to open up a new FlexTime document, set the time and start it counting down, and another script that I can set as a Finishing Cue, which plays my sounds, displays my message, and closes the window. What I can't seem to figure out is how to set the finishing cue to call the second script from within the first (Quicksilver-triggered) AppleScript. I can set non-script finishing cues; for example: [code]tell application "FlexTime" set action of finishing cue of first activity of document "Untitled Routine" to "Play sound" set parameter of finishing cue of first activity of document "Untitled Routine" to "Glass" end tell[/code] but the equivalent syntax for setting a script as a finishing cue doesn't work: [code]tell application "FlexTime" set action of finishing cue of first activity of document "Untitled Routine" to "Run Script" set parameter of finishing cue of first activity of document "Untitled Routine" to "BotBook:Users:adpeters:Desktop:QSFTNotify.scpt" end tell[/code] will set the action correctly (to Run Script), but gives me an "NSUnknownKeyScriptError" and doesn't actually set the script file to run. I've double-checked that the path to the file is correct. What am I doing wrong?
Cancel
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Powered by Vanilla