Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/print_os_x_preview_app_bookmarks
Uses Python and PyObjC to parse OS X Preview.app's bookmarks
https://github.com/msabramo/print_os_x_preview_app_bookmarks
Last synced: 28 days ago
JSON representation
Uses Python and PyObjC to parse OS X Preview.app's bookmarks
- Host: GitHub
- URL: https://github.com/msabramo/print_os_x_preview_app_bookmarks
- Owner: msabramo
- Created: 2011-04-13T00:55:27.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-04-13T23:30:34.000Z (over 13 years ago)
- Last Synced: 2024-05-09T20:41:12.533Z (8 months ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This simple program uses Python and [PyObjC](http://pyobjc.sourceforge.net/) to
parse OS X [Preview.app](http://en.wikipedia.org/wiki/Preview_%28software%29)'s
bookmarks, stored in
`${HOME}/Library/Preferences/com.apple.Preview.bookmarks.plist`.How did I figure this out?
### Install [class-dump](http://www.codethecode.com/projects/class-dump/).
$ brew install class-dump
### Run it. The `awk` is just to filter the output to show just the `PVBookmark` class.
$ class-dump /Applications/Preview.app | awk '/@interface PVBookmark/, /@end/ { print; }'
@interface PVBookmark : NSObject
{
NSString *_UUID;
NSString *_parentUUID;
PVFileReference *_file;
NSDate *_fileModDate;
NSString *_label;
int _pageIndex;
}
- (id)initWithFilePath:(id)arg1 label:(id)arg2 pageIndex:(unsigned long long)arg3;
- (void)dealloc;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)description;
- (id)UUID;
- (id)filePath;
- (id)fileModificationDate;
- (id)label;
- (void)setLabel:(id)arg1;
- (unsigned long long)pageIndex;
- (id)targetExists;
- (BOOL)targetIsOnNetworkVolume;
- (id)displayPath;
- (unsigned long long)pageNumber;
@end