Re: comparing modification dates
Re: comparing modification dates
- Subject: Re: comparing modification dates
- From: Lachlan Deck <email@hidden>
- Date: Wed, 15 May 2002 13:00:58 +1000
Hi there,
From: "Kinsella, John R." <email@hidden>
List
I'm having a tough time getting this to work. I need to find the
modificaion date of a local file and compare it to the modification
date of
a file on the server. But I get "can get modification date" errors
when I
try to specificy the path to these files. I have one file on my
desktop and
when I say
get the modification date of file "old" it finds it OK
Yep. desktop is assumed when no path is specified.
Path examples:
1)
set thePath to (path to desktop) as string
get modification date of ((thePath & "old") as alias)
2)
-- mounted volume
set theVol to "MacOSBackups" as alias
set theFolder to ((theVol as string) & "OSXBackups")
set theList to list folder (theFolder as alias) without invisibles
choose from list theList
==============
Is the server disk mounted?
Are you on OS X or OS 9?
On OS X - you'd mount the disk and then the path is simply:
"NameOfMountHD:path:To:FOlder:fileName"
e.g.,
set thePath to ,
"NameOfMountHD:path:To:FOlder:fileName"
tell app "Finder"
set theMod to (the modification date of (thePath as alias))
end tell
display dialog theMod
with regards,
--
Lachlan Deck
email@hidden
_______________________________________________
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.