• 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
Re: Permissions problem mac OS X 10.9.5 server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Permissions problem mac OS X 10.9.5 server (From: Jim Weisbin <email@hidden>)

  • Prev by Date: Re: Permissions problem mac OS X 10.9.5 server
  • Next by Date: Startup Disk
  • Previous by thread: Re: Permissions problem mac OS X 10.9.5 server
  • Next by thread: Startup Disk
  • Index(es):
    • Date
    • Thread