Re: What is wrong with my script
Re: What is wrong with my script
- Subject: Re: What is wrong with my script
- From: Philip Aker <email@hidden>
- Date: Fri, 11 Sep 2009 17:03:49 -0700
On 2009-09-11, at 11:53:39, xorx wrote: Running the following script in AppleScript editor creates error -1728:
--start set AS_path to POSIX file "/Applications/" tell application "Finder" set dat to modification date of AS_path end tell --end
It says that "modification date of file "/Applications/"" could not be read. This error happens with all possible properties of file objects. The file obviously exists and I have no clue why this does not work...
Firstly, the preferred application for such info is now "System Events". Otherwise the other observations made are good as well:
tell application "System Events" to set mdate to modification date of applications folder Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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