• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modification date


  • Subject: Re: modification date
  • From: Steven Valenti <email@hidden>
  • Date: Wed, 19 May 2004 13:16:22 -0400

I also come up with missing value when trying to get size, so I have
been using this.

set BackUpFolder to "pathToWhatever"
with timeout of (60 * 60) seconds -- One hour
repeat
tell application "Finder"
set ByteSize to size of (info for alias BackUpFolder)
end tell
if ByteSize is not missing value then
exit repeat
else
delay 2
end if
end repeat
end timeout


On Wednesday, May 19, 2004, at 12:03 PM, Bull, Rex J (CCC) wrote:

> I have several scripts that purge old files from my network
> (XServe/Xraid
> and a Novell server).
> These scripts are being run on either OS 10.2.2 or OS 10.3.3, I have
> the
> same results from both OSs and with
> files from both servers.
>
> Most of the time the scripts work as they should but there are times
> when
> the script returns "missing value" for the
> modification date. If I put it in a repeat loop and "keep looking"
> until the
> date is found things are OK.
>
> My question is has anyone else had this problem and is there a known
> cause
> for it.
>
> Here is a sample of my code.
>
> tell application "Finder"
> set noDate to false
> set theDate to modification date of item (thePath & Loop)
>
> if theDate is in {missing value} then ---unable to see the
> modification
> date?????
> repeat 100 times
> set theDate to modification date of item (thePath & Loop)
> if theDate is not in {missing value} then exit repeat
> end repeat
> if theDate is in {missing value} then
> set noDate to true
> end if
> end if
>
> if not noDate then
> if theAgeInSeconds > daysToKeep then
> move item theMacFilePath to folder (thePath &
> "30_Day_Drop_UnUsed:") with replacing
> end if
> end if
> end tell
>
>
>
> any ideas ?
> Thanks
>
>> Rex Bull
>> PrePress Support
>> Carlson Craft Business Solutions
>> Phone: 507-386-2508
> _______________________________________________
> 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.
_______________________________________________
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.


  • Prev by Date: Re: URL Access Scripting- File Naming Problems
  • Next by Date: Re: Similarity between integers in a list
  • Previous by thread: modification date
  • Next by thread: ANNOUNCE: Property List Tools 1.0.2
  • Index(es):
    • Date
    • Thread