Bookmark alias files v. Finder alias files
Bookmark alias files v. Finder alias files
- Subject: Bookmark alias files v. Finder alias files
- From: Shane Stanley <email@hidden>
- Date: Sat, 14 Apr 2012 09:54:24 +1000
I'm creating alias files using bookmark data, as in the docs:
NSData *bookmarkData = [url bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile
includingResourceValuesForKeys:nil
relativeToURL:nil
error:&error];
[NSURL writeBookmarkData:bookmarkData toURL:bookmarkURL options:0 error:&error];
When I look in the Finder, a Finder-created alias of the same file is listed as 144KB, while the one I saved is 96KB. I'm curious about what's in that extra 48KB.
I had a look in Terminal and got this:
Shanes-iMac:~ shane$ ls -laoO /Users/shane/Desktop/untitled\ folder
total 496
drwxr-xr-x 5 shane - 170 14 Apr 08:44 .
drwx------@ 310 shane - 10540 14 Apr 08:44 ..
-rw-r--r--@ 1 shane - 6148 14 Apr 08:44 .DS_Store
-rw-r--r--@ 1 shane - 48296 13 Apr 22:16 key path samples copy.scpt alias 5
-rw-r--r--@ 1 shane - 48360 13 Apr 22:31 key path samples copy.scpt alias 6
IOW, there's only 64 bytes difference between them -- meanwhile another 48KB seems unaccounted for.
Does anyone have an explanation? And can I assume my bookmark-produced files will behave the same as Finder-created ones?
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden