• 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
weird behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: weird behaviour
      • From: Michelle Steiner <email@hidden>
    • Re: weird behaviour
      • From: Skeeve <email@hidden>
    • Re: weird behaviour
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Mail and Searching
  • Next by Date: Re: weird behaviour
  • Previous by thread: Re: What's the use of class furl?
  • Next by thread: Re: weird behaviour
  • Index(es):
    • Date
    • Thread