Re: Can a Creation Date be Modified with ASObjC?
Re: Can a Creation Date be Modified with ASObjC?
- Subject: Re: Can a Creation Date be Modified with ASObjC?
- From: Shane Stanley <email@hidden>
- Date: Mon, 27 Jun 2016 14:16:59 +1000
On 27 Jun 2016, at 1:35 PM, Christopher Stone <email@hidden> wrote:
So the mod-date key would be:
set {theResult, theError} to theURL's setResourceValue:theDate forKey:(current application's NSURLContentModificationDateKey) |error|:(reference)
Right. Is there a better listing of the available keys than this?
Is there a worse listing? Looks like the Sierra beta pages need some work for Objective-C. You can use the Swift versions, just prefixing them with "NSURL" and capping the following letter.
I use Dash, but that requires you have Xcode installed. And if you have Xcode installed, you can look at NSURL.h.
If you're using Script Debugger 6, type NSURL and hit esc; the entries that end in "Key" are the keys.
|
_______________________________________________
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