Re: Missing file date
Re: Missing file date
- Subject: Re: Missing file date
- From: "Timothy K. Wilkinson" <email@hidden>
- Date: Wed, 24 Sep 2003 09:12:50 -0400
Shane,
Your fix worked. Many thanks!
To answer Paul's question about the coercion of "missing value". I did use
a display dialog at one point as a troubleshooting device and it would
simply display "msng" as the value. The value was obtained with this line:
set file_date to the creation date of theFile
The next line was simply "display dialog file_date". Even when I removed
the display dialog I was getting the error message. I believe it was coming
from the line where I did the math to get the correct number of days. Since
there wasn't any "date" data in that variable then it couldn't do the math
and, I'm assuming, generated the error.
Many thanks to everyone for the help!
Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
>
From: Shane Stanley <email@hidden>
>
Date: Wed, 24 Sep 2003 08:45:56 +1000
>
To: AS lists <email@hidden>
>
Subject: Re: Missing file date
>
>
On 24/9/03 4:31 AM +1000, Timothy K. Wilkinson, email@hidden, wrote:
>
>
> It works fine except for the times that there is no date. It returns a
>
> value of "msng". This seems to happen on files that are invisible and have
>
> a "." in front of them. I've tried to test for that (see below) but with
>
> no success.
>
>
What is actually being returned is "missing value" (no quotes), which
>
returns "msng" when coerced to text. I'm a bit surprised that you're getting
>
this, but in answer to your question, try changing this:
>
>
> if file_date is not equal to "msng" then
>
>
to:
>
>
if file_date is not missing value then
_______________________________________________
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.