Re: Permissions problem mac OS X 10.9.5 server
Re: Permissions problem mac OS X 10.9.5 server
- Subject: Re: Permissions problem mac OS X 10.9.5 server
- From: Jim Weisbin <email@hidden>
- Date: Thu, 15 Jun 2017 15:38:44 -0400
Yvan KOENIG <email@hidden <mailto:email@hidden>> wrote:
> On Jun 15, 2017, at 3:00 PM, email@hidden wrote:
>
>> on open these_items
>> tell application "Finder"
>> repeat with i from 1 to the count of these_items
>>
>> set this_item to (item i of these_items)
>> if kind of this_item is "Folder" then
>> set theCreationDate to creation date of
>> this_item
>> -- display dialog theCreationDate as string
>> set this_item's modification date to
>> theCreationDate
>> end if
>> end repeat
>> end tell
>> end open
>>
>> I’m certain that the admin has the permissions to modify these folders. Is
>> it a limitation of OS X 10.9.5?
>>
>> I think I could do this with SetFile, but this solution seemed to be the
>> easiest and quickest to write.
>>
>
> As far as I remember, Applescript may change a modification date but can't
> change a creation one.
>
>
I’m not setting the creation date. I’m setting the mod date, getting it from
the creation date:
set this_item's modification date to theCreationDate
works on my laptop on MacOS 10.12.5
Jim Weisbin | C.T.O. | Human | Post Human | 27 West 20th Street | Suite 801 |
New York, NY | 10011 | (212) 352-0211 | (917) 375-2272 | Los Angeles Office |
2046 Broadway | Santa Monica, CA | 90404 | (310) 264-0211 telephone |
www.humanworldwide.com <http://www.humanworldwide.com/>
Click here <http://www.humanworldwide.com/#commercials> to view our online reel
_______________________________________________
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