Re: What is wrong with my script
Re: What is wrong with my script
- Subject: Re: What is wrong with my script
- From: Michelle Steiner <email@hidden>
- Date: Fri, 11 Sep 2009 12:03:13 -0700
On Sep 11, 2009, at 11:53 AM, 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...
It's a folder, not a file.
One solution is to change the script to this:
set AS_path to POSIX file "/Applications/" tell application "Finder" set dat to modification date of (AS_path as alias) end tell
-- Michelle -- Patient: But doctor, slow metabolism runs in my family.
Doctor: The problem is nobody runs in your family!
|
_______________________________________________
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