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: Yvan KOENIG <email@hidden>
- Date: Fri, 16 Jun 2017 11:23:01 +0200
> Le 15 juin 2017 à 21:38, Jim Weisbin <email@hidden> a écrit :
>
> Yvan KOENIG <email@hidden <mailto:email@hidden>> wrote:
>
>> On Jun 15, 2017, at 3:00 PM, email@hidden
>> <mailto: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
Oops, you're right. My eyes weren't wide open.
Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) vendredi 16
juin 2017 11:22:55
_______________________________________________
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