Re: Why doesn't this work any more?
Re: Why doesn't this work any more?
- Subject: Re: Why doesn't this work any more?
- From: John Delacour <email@hidden>
- Date: Sun, 13 Apr 2003 11:39:25 +0100
- Mac-eudora-version: 6.0a15
At 9:49 am +0100 13/4/03, Jeremy Roussak wrote:
set fl to every folder in alias "JR:Work:" whose modification
date is greater than lastDate
The folder JR:Work: does exist and lastDate is a date variable. I
get a message from the Finder that it can't make some data into the
expected type.
I think this bug has been mentioned a few times on the list.
You'll have to use a loop instead:
set {d, f} to {"1/1", (path to "cusr")}
set {date_, hits_} to {date d, {}}
tell app "Finder"
repeat with i in (get folders in f)
if i's modification date < date_ then set end of hits_ to f as alias
end
hits_
end
_______________________________________________
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.