Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 6, 2012, 10:46 PM   #1
drskot
macrumors newbie
 
Join Date: Jul 2010
iCal "Run Script" alert opens .scpt file in AppleScript Editor instead of running it

I think I've followed the instructions right on how to schedule a script to run, but when the alert fires, instead of running the script gets opened in AppleScript Editor.

Here's what I did:

- Created a new event in iCal
- Under "alert" chose "Run Script"
- located my script file "running.scpt"
- typed "1" next to "minutes before"

What am I doing wrong? Running Lion 10.7.4, iCal 5.0.3.
drskot is offline   0 Reply With Quote
Old Jun 7, 2012, 09:04 AM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
Can you post your script code? Put your code between the code tags. What instructions did you follow?
kryten2 is offline   0 Reply With Quote
Old Jun 7, 2012, 11:47 AM   #3
drskot
Thread Starter
macrumors newbie
 
Join Date: Jul 2010
After trying what seemed straightforward in the user interface, I found several descriptions of the procedure online, which seemed to confirm what I had already guessed. For example:

http://www.tuaw.com/2008/04/14/mac-1...-your-scripts/
http://www.dssw.co.uk/blog/2011/01/1...n-applescript/
http://www.hawkwings.net/2005/12/09/...n-applescript/

The script I'm trying to run for now is simply this:

Code:
tell application "iCal" to activate
saved in a file called, optimistically, "running.scpt".

If I type at the command line

Code:
osascript running.scpt
the script does what it's meant to do (bring iCal to the front), but if I set it as an iCal alarm, it just opens in AppleScript Editor.

Thanks for your help...
drskot is offline   0 Reply With Quote
Old Jun 7, 2012, 12:47 PM   #4
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
The script runs fine here. It activates (brings iCal to the front). I'm running Leopard 10.5.8, iCal 3.0.8. Sure you didn't choose Open file instead of Run script?
Attached Thumbnails
Click image for larger version

Name:	Picture 4.png
Views:	13
Size:	60.0 KB
ID:	342145  
kryten2 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iCloud file sharing/syncing like "Dropbox"/"iDisk" bedifferent OS X Mavericks (10.9) 9 Sep 5, 2013 10:23 PM
Fans constantly running, and run during "sleep" DrDomVonDoom MacBook Pro 2 Jun 17, 2013 08:49 PM
When I "open file" finder opens scrolled to the side mirzank OS X 10.8 Mountain Lion 1 Apr 21, 2013 12:01 AM
Set alert to none in iCal, on iOS it sets to "At time of event" tarryweather iCloud and Apple Services 0 Sep 20, 2012 10:33 PM
"Potentially useful" Abbyy Fine Reader script. (does not replace input file) tiriya Mac Programming 0 Aug 9, 2012 08:19 AM

Forum Jump

All times are GMT -5. The time now is 02:26 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC