weird behaviour
weird behaviour
- Subject: weird behaviour
- From: Ronald Hofmann DE <email@hidden>
- Date: Mon, 28 Jul 2008 17:13:08 +0200
Hi everybody,
I have a small AS which behaves really naughty.
It is supposed to find all Pictures in my ScreenShots folder which are
older than two weeks and delete them. I don´t need them anymore.
Basicly I have a path in line 1 and 2. HFS path in line two.
Unfortunately info for theFile in line 5 doesn´t work for any file I
try.
What is wrong?
1 set theFile to "/Users/ronny/ScreenShots/Bild 15.jpg"
2 set theFile to alias (theFile as POSIX file)
3
4 tell application "Finder"
5 info for theFile
6 end tell
By the way, is there an easier way to find files older than two weeks
than looping thru a list and make info for for each item of the list?
Regards, Ronald
--- _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden