Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS 9 vs. 0S X scripts?



On Thursday, October 31, 2002, at 11:24 AM, Mario Kolaszewski wrote:

You're absolutely right, thats exactly what I'm doing.
How do I get around that so the script works on both OSs.

Just remove "date"; it should work on both platforms.

P.S to make things clear this is what I'm doing

set foo to current date
set dateA to date string of foo --to get the string of the date
set dateB to date dateA --to perform date calculations

That should work on both platforms, but why do it that way when you can do this:

set foo to current date
set dateA to date string of foo
set dateB to foo

dateA is a string, and dateB is a date.

But those three lines wouldn't cause the error. What would cause the error is
set dateB to date dateA

--Michelle

We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.