Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Apple Script fa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1657 of 1674
Post > Topic >>

Apple Script fails when executed from Terminal

by SKT <swapnilthakre@[EMAIL PROTECTED] > Sep 1, 2008 at 04:42 AM

I have a apple script which runs fine when it is run from the Script
Editor window. But when I run the same script from Terminal the script
fails.

Following is the code:

set currentAttendeeStatus to (participation status of attendee
loop_count of Find_event) as string
if (currentAttendeeStatus = item user_no of users_status_list) then
	display dialog "Do nothing"
else
	display dialog "False condition reached"
	set AttVerifcationStatus to false
	exit repeat
end if

"participation status of attendee loop_count of Find_event" variable
belongs to constant class and "item user_no of users_status_list"
belongs to class string. I am coercing "participation status of
attendee loop_count of Find_event" into a string while copying it to
currentAttendeeStatus.

The above piece of code works fine when run from the script editor Run
button. But it fails when it is run from the Terminal.

Please suggest some pointers for this problem.

Regards,
SKT.
 




 4 Posts in Topic:
Apple Script fails when executed from Terminal
SKT <swapnilthakre@[EM  2008-09-01 04:42:15 
Re: Apple Script fails when executed from Terminal
Jolly Roger <jollyroge  2008-09-01 11:22:16 
Re: Apple Script fails when executed from Terminal
SKT <swapnilthakre@[EM  2008-09-01 22:21:37 
Re: Apple Script fails when executed from Terminal
Jolly Roger <jollyroge  2008-09-02 09:27:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 15:29:42 CST 2008.