Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > applescript in crontab

applescript in crontab
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2002
Location: Redondo Beach, CA
Status: Offline
Reply With Quote
Feb 11, 2002, 05:43 PM
 
I am having a problem getting applescripts to run in crontab. by problem, i mean not at all. i'm using the command osascript to call the applescript. It works exactly how it's supposed to if i run it from the command line
osascript getPicURL lib

I did an -se on osascript in the crontab and sent it to a text file. The error i'm getting is
execution error: Finder got an error: Application isn't running. (-600)

has anyone come across this?
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Feb 13, 2002, 10:14 AM
 
Just a guess here, but it could be a permission problem as crontrab may not execute under your userid (i don't know). Also, the execute bit may need to be set (again, just a guess; don't know).

Also consider the possibility that your script is indeed running, but that it's getting an error under cron that it doesn't get when you run it. From your error message, Finder got an error: Application isn't running, it seems to me this might indeed be the case (as the error appears to be coming from the Finder; does your script call the Finder to do something?). You might ask the script to do something simple like beep to verify whether or not it's actually being called. Again, the reason might be that cron could be executing under a different user id.

Good luck (and please post the answer when you find one).
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:40 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2