Re: Howto Display terminal return value??
Re: Howto Display terminal return value??
- Subject: Re: Howto Display terminal return value??
- From: montana <email@hidden>
- Date: Sat, 18 Jan 2003 17:45:27 -0600 (CST)
On Saturday, January 18, 2003, at 01:13 PM, montana wrote:
set this_result to do shell script B,
("timecalc.py" & " " & sdate & " " & edate) as string
display dialog this_result buttons {"Ok"} default button 1
"<<script>> doesn't understand the B message."
Any ideas on how to make this code better?
set sdate to the text returned of (display dialog "Enter start date:" default answer "")
--Michelle
Sorry. That B is actually a continuation character from the Applescript editor. It turns into a B when I cut and paste.B Should be "B,". (I hope this carries over in email, if not then you know what I mean)
The actual line should read set this_result to do shell script ("timecalc.py" & " " & sdate & " " & edate) as string. Timecalc.py is a python script I wrote to calculate the difference between two dates/time in the format (MM/dd/yy HHmm). This program then returns the differnce between the two times in hours and minutes. If anyone knows how to do this in Applescript that would be great information too.
Thanks.
SA
:)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.