Re: not allowed? with Cron
Re: not allowed? with Cron
- Subject: Re: not allowed? with Cron
- From: "hackmiester (Hunter Fuller)" <email@hidden>
- Date: Thu, 7 Sep 2006 10:06:43 -0500
On 7 September 2006, at 09:32, Robert Poland wrote:
Tried;
/usr/bin/open "osascript iMac HD:Library:Scripts:Universal
Scripts:EjectStuff"
You are opening a command line command with a command line command.
That won't work.
osascript "iMac HD:Library:Scripts:Universal Scripts:EjectStuff"
"osascript iMac HD:Library:Scripts:Universal Scripts:EjectStuff"
"osascript /Library:Scripts:Universal Scripts:EjectStuff"
"osascript ~Library:Scripts:Universal Scripts:EjectStuff"
Osascript takes POSIX paths. This is apparently in the system's
Library folder, so you would use:
"osascript /Library/Scripts/Universal\ Scripts/EjectStuff.scpt"
Assuming you saved as a script. If you saved as an app:
"open /Library/Scripts/Universal\ Scripts/EjectStuff.app"
Still haven't had any luck.
On Sep 7, 2006, at 7:23 AM, hackmiester (Hunter Fuller) wrote:
You can't just run it from cron, you have to run "osascript ~/path/
to/script.scpt
On 7 September 2006, at 07:22, Robert Poland wrote:
Hi,
I have this script (Application) that is called by Cron every
night. So far all that happens is that Smile is opened and the
application is opened for editing.
So far if I run the script from smile it works fine. But not from
Cron.
Is there something here that's not allowed?
set stuffItem to "Stuff ƒ"
try
tell application "Finder"
if exists (alias stuffItem) then
eject (alias stuffItem)
end if
end tell
quit
end try
Tia,
Robert Poland
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
hackmiester (Hunter Fuller)
<svinx> yknow when you go to a party, and everyones hooked up
except one guy and one girl
<svinx> and so they look at each other like.. do we have to?
<svinx> intel & nvidia must be lookin at each other like that
right now
Phone
Voice: +1 251 589 6348
Fax: Call the voice number and ask.
Email
General chat: email@hidden
Large attachments: email@hidden
SPS-related stuff: email@hidden
IM
AIM: hackmiester1337
Skype: hackmiester31337
YIM: hackm1ester
Gtalk: hackmiester
MSN: email@hidden
Xfire: hackmiester
Robert Poland
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
@hackmiester.com
This email sent to email@hidden
--
hackmiester (Hunter Fuller)
<svinx> yknow when you go to a party, and everyones hooked up except
one guy and one girl
<svinx> and so they look at each other like.. do we have to?
<svinx> intel & nvidia must be lookin at each other like that right now
Phone
Voice: +1 251 589 6348
Fax: Call the voice number and ask.
Email
General chat: email@hidden
Large attachments: email@hidden
SPS-related stuff: email@hidden
IM
AIM: hackmiester1337
Skype: hackmiester31337
YIM: hackm1ester
Gtalk: hackmiester
MSN: email@hidden
Xfire: hackmiester
_______________________________________________
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