Re: Weird behavior - Script saved as application...
Re: Weird behavior - Script saved as application...
- Subject: Re: Weird behavior - Script saved as application...
- From: Michelle Steiner <email@hidden>
- Date: Fri, 7 Apr 2006 13:13:26 -0700
On Apr 7, 2006, at 1:01 PM, Bernardo Höhl wrote: Why does this script work when I run it from script editor, and when I save it as an application doesn't?
Apparently without the text editor to do some of the work, it can't coerce the number into a string. This works:
if (count of characters of (_day as text)) as text < 2 then
you will also need to change this:
if (count of characters of (_month as text)) as text < 2 then
-- Michelle
--- Do not go out and kill Klansmen, no matter how much they deserve it. It would be funny as hell to see on the evening news how a bunch of guys wearing bright pink robes and hoods started burning triangles in their yards for a change. |
_______________________________________________
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