Re: OS X Recent Items
On Apr 24, 2009, at 2:32 AM, Kay C Lan wrote: Déjà-vu, Jim didn't we have this thread in March? http://macscripter.net/viewtopic.php?id=17554 Can't you skin this cat with AppleScript? Kay - thank you returning me to that web page. I think I need my ESM (Earthling Stress Module) refitted ;-) Life itself sometimes obscures my view though the windshield, often my dang rearview mirror seems useless :-PThanks for looking back for me. On that web page, with applescripts from 2002 onwards, is a reference to CLI records. That one looks like the one I am looking for. It turns: < 00b20003 c42cec16 482b 0002ed9e 02575bea c616 8447 0920 fffe 0001 000c0002 ed9e0002 ed93 60b7000e 001e000e 0065006d 00610069 006c0041 006c0065 00720074 002e006a 00700067 000f000a 0004006d 00610069 006e0012 00245573 6572732f 6a696d73 696d732f 4465736b 746f702f 656d6169 6c416c65 72742e6a 70670013 00012f00 00150002 000e > into: document file "emailAlert.jpg" of folder "CoverImages" of folder "LH" of folder "Desktop" of folder "jimsims" of folder "Users" of startup disk of application "Finder" Easy to pull what I need from that. Phew. Once again, thanks Kay. I'm including that applescript in this email in case someone up the road of Time looks into their rearview mirror for this same sort of thing. The Archives are our friends - Long live the Archives. Long live the List. sims -- applescript for recent items - on getAliasesFrom(CLIrecords) set theAliases to {} set tempFile to (path to temporary items as Unicode text) & "aliasData.dat" set fRef to (open for access file tempFile with write permission) try repeat with i from 1 to (count CLIrecords) set eof fRef to 0 write |Alias| of item i of CLIrecords to fRef set thisAlias to (read fRef from 1 as alias) try -- Check the alias before including it in the list. info for thisAlias set end of theAliases to thisAlias on error number -43 display dialog "The file “" & thisAlias & "” no longer exists." buttons {"OK"} default button 1 end try end repeat end try close access fRef return theAliases end getAliasesFrom set recentitems to (path to preferences as Unicode text) & "com.apple.recentitems.plist" tell application "System Events" set riInfo to contents of property list file recentitems set appInfo to |CustomListItems| of (get value of property list item "Applications" of riInfo) set docInfo to |CustomListItems| of (get value of property list item "Documents" of riInfo) set servInfo to |CustomListItems| of (get value of property list item "Servers" of riInfo) end tell tell application "Finder" set sortedApps to (sort my getAliasesFrom(appInfo) by modification date) set sorteddocs to (sort my getAliasesFrom(docInfo) by modification date) -- set sortedServers to (sort my getAliasesFrom(servInfo) by modification date) -- Servers must be mounted. end tell ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
On Thu, Apr 23, 2009 at 1:32 PM, jim sims wrote: > > If my guess above is correct, can anyone tell me how to convert them into > text I can use? If they are paths, into a useable path to the file? > > Déjà-vu, Jim didn't we have this thread in March? Unfortunately whilst this gives the name of the file in plain English, the > path is given in some kind of code which fortunately can be decoded using > AppleScript. Look here for some hints how to sort the list chronologically: > > http://macscripter.net/viewtopic.php?id=17554 > Your reply: This tip is very helpful! Some nice applescript on that web page. > Can't you skin this cat with AppleScript? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
Mac OS 10.4.11 HexEdit v2.0 Fr (Carbon) the result is (your return message was incomplete ?) : For alias : ∆ƒ,ÏH+L¿HL¿î∆Qz ˇ˛L¿HÌûÌì`∑sample_1.jpg main8Users/jimsims/Desktop/dashboards_Rossi copy/sample_1.jpg/ˇˇ For Icon : ImgR‘FBIL»∏ƒ,ÏH+R'˚9√#ç¢ ˇ˛R'R"R!hjpeg.icns main5Applications/Preview.app/Contents/Resources/jpeg.icns/ˇˇ Bons souvenirs de Paris René Le 23 avr. 09 à 15:38, George C Brackett a écrit : Hmm. Color my face red! I looked again, though, and don't see what you saw. Perhaps the code is encoded in multiple-byte characters? I get nothing in unicode 7 or 8. George On Apr 23, 2009, at 8:24 AM, René Micout wrote: Hello, I have done the same and I obtain : For alias : ∆ƒ,ÏH+L¿HL¿î∆Qz ˇ˛L¿HÌûÌì`∑sample_1.jpg sample_1.jpgFor Icon : ImgR‘FBIL»∏ƒ,ÏH+R'˚9√#ç¢ ˇ˛R'R"R!hjpeg.icns jpeg.icnsRené from Paris ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
Hmm. Color my face red! I looked again, though, and don't see what you saw. Perhaps the code is encoded in multiple-byte characters? I get nothing in unicode 7 or 8. George On Apr 23, 2009, at 8:24 AM, René Micout wrote: Hello, I have done the same and I obtain : For alias : ∆ƒ,ÏH+L¿HL¿î∆Qz ˇ˛L¿HÌûÌì`∑ sample_1.jpg sample_1.jpgFor Icon : ImgR‘FBIL»∏ƒ,ÏH+R'˚9√#ç¢ ˇ˛R'R"R!h jpeg.icns jpeg.icnsRené from Paris Le 23 avr. 09 à 14:08, George C Brackett a écrit : I looked at the code in HexEdit, which displays any corresponding text: nothing but an occasional letter here and there. Certainly no pathnames. George ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
Hello, I have done the same and I obtain : For alias : ∆ƒ,ÏH+L¿HL¿î∆Qz ˇ˛L¿HÌûÌì`∑sample_1.jpg m a i n 8Users/jimsims/Desktop/dashboards_Rossi copy/ sample_1.jpg / ˇˇ For Icon : ImgR‘FBIL»∏ƒ,ÏH+R'˚9√#ç¢ ˇ˛R'R"R!hjpeg.icns m a i n 5Applications/Preview.app/Contents/Resources/ jpeg.icns / ˇˇ René from Paris Le 23 avr. 09 à 14:08, George C Brackett a écrit : I looked at the code in HexEdit, which displays any corresponding text: nothing but an occasional letter here and there. Certainly no pathnames. George ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
On Apr 23, 2009, at 2:08 PM, George C Brackett wrote: I looked at the code in HexEdit, which displays any corresponding text: nothing but an occasional letter here and there. Certainly no pathnames. Thanks George. I also tried terminal and plutil, using the convert command and nothing seemed to be what I wanted. False alarm. I am trying to get paths of open files (esp. image files) at any point I want to run my project. The command-line lsof is helpful, but Photoshop files present some kind of problem and don't seem to show up. I clearly have more research to do; what I want to achieve will probably require a few approaches bundled together. sims s...@ezpzapps.com Skype: sims.jim iChat: techietours __ Opportunity by Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
I looked at the code in HexEdit, which displays any corresponding text: nothing but an occasional letter here and there. Certainly no pathnames. George On Apr 23, 2009, at 1:32 AM, jim sims wrote: Alias: < 00c60003 c42cec16 482b 024cc048 024cc094 c614 517a 0920 fffe 0001 0010024c c0480002 ed9e0002 ed93 60b7000e 001a000c 00730061 006d0070 006c0065 005f0031 002e006a 00700067 000f000a 0004006d 00610069 006e0012 00385573 6572732f 6a696d73 696d732f 4465736b 746f702f 64617368 626f6172 64735f52 6f737369 20636f70 792f7361 6d706c65 5f312e6a 70670013 00012f00 00150002 000e > Icon: <496d6752 00d4 4642494c 00c8 0002 00b80003 c42cec16 482b 5227 0007fb39 c323 8da2 0920 fffe 0001 0010 5227 5222 5221 0768000e 00140009 006a0070 00650067 002e0069 0063006e 0073000f 000a0004 006d0061 0069006e 00120035 4170706c 69636174 696f6e73 2f507265 76696577 2e617070 2f436f6e 74656e74 732f5265 736f7572 6365732f 6a706567 2e69636e 7313 00012f00 > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
On Apr 23, 2009, at 7:43 AM, Terry Judd wrote: Jim - are you sure there aren't any bits in that file that look like this... apps /Applications/BBEdit Lite 6.1/BBEdit Lite 6.1 /Applications/Internet Explorer.app Thanks for the reply Terry. That com.apple.recentitem.plist was taken from my Mac 10.5.6 machine. When I open that file up using the PropertyList Editor, then hit the Dump button I get the information copied below. If I save as XML property list format or ASCII property list format I get the same thing. The only other choice is save as Binary serialized property list format and that seems a bit unusable. sims - Alias AADGAAMAxCzsFgAASCsAAkzASAJMwJQA AMYUUXoACSD//gAA/wABABACTMBI AALtngAC7ZMAAGC3AA4AGgAMAHMAYQBtAHAAbABlAF8A MQAuAGoAcABnAA8ACgAEAG0AYQBpAG4AEgA4VXNlcnMv amltc2ltcy9EZXNrdG9wL2Rhc2hib2FyZHNfUm9zc2kg Y29weS9zYW1wbGVfMS5qcGcAEwABLwAAFQACAA7//wAA Icon SW1nUgAAANQARkJJTMgC uAADAMQs7BYAAEgrUicAB/s5AADDI42i AAkg//4AAP8AAQAQAABSJwAAUiIA AFIhAAAHaAAOABQACQBqAHAAZQBnAC4AaQBjAG4AcwAP AAoABABtAGEAaQBuABIANUFwcGxpY2F0aW9ucy9QcmV2 aWV3LmFwcC9Db250ZW50cy9SZXNvdXJjZXMvanBlZy5p Y25zAAATAAEvAP//AAA= Name sample_1.jpg ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Recent Items
Jim - are you sure there aren't any bits in that file that look like this... apps /Applications/BBEdit Lite 6.1/BBEdit Lite 6.1 /Applications/Internet Explorer.app /Applications/Safari.app /Applications/Netscape.app /Applications/TextEdit.app /Applications/Revolution 2.5.1/Revolution.app /Applications/Mail.app /Applications/DragThing 4.6.1/DragThing.app /Volumes/Projects/Current/PVC/Builds/PVC 0.9.5/MacOSX/PVC.app /Applications/Microsoft Office 2004/Microsoft Word Or this... docs /Volumes/Projects/Current/ATS/ATS inter presentation/s1w1-4/log_lab1a2.mdhs.unimelb.edu.au.xml /Volumes/Projects/Current/ATS/ATS inter presentation/s1w1-4/log_lab1a1.mdhs.unimelb.edu.au.xml /Volumes/Projects/Current/ATS/ATS inter presentation/temp.xml /Users/tezza/Library/Preferences/Explorer/History.html /Volumes/Projects/Current/ATS/ATS inter presentation/temp.xml /Volumes/Projects/Current/ATS/ATS inter presentation/temp.txt /Volumes/Projects/Current/ATS/ATS inter presentation/temp.html /Volumes/Projects/Current/ATS/ATS_inter (TAG)/TAG+.rev /Users/tezza/Library/Mozilla/Profiles/Terry Judd/ouuygrt4.slt/cookies.txt /Volumes/Projects/Current/ATS/ATS inter presentation/ATS_inter.rev ...because they¹re pretty easy to parse. Having said that, these snippets are out of an old recent items file I had lying about. I couldn¹t locate one from my current (10.5) system. Terry... On 23/04/09 3:32 PM, "jim sims" wrote: > OS X has the following file that holds information about recent items > (applications and files) com.apple.recentitem.plist > > An example taken from that .plist file is the following. It refers to > an image, and what I guess is the path to the icon to that file and > the pathway to the file itself. At least I hope that is what they are. > > If my guess above is correct, can anyone tell me how to convert them > into text I can use? If they are paths, into a useable path to the file? > > Name: > sample_1.jpg > > Alias: > < 00c60003 c42cec16 482b 024cc048 > 024cc094 c614 517a 0920 fffe > 0001 0010024c c0480002 ed9e0002 ed93 60b7000e 001a000c > 00730061 006d0070 006c0065 005f0031 002e006a 00700067 000f000a > 0004006d 00610069 006e0012 00385573 6572732f 6a696d73 696d732f > 4465736b 746f702f 64617368 626f6172 64735f52 6f737369 20636f70 > 792f7361 6d706c65 5f312e6a 70670013 00012f00 00150002 000e > > > Icon: > <496d6752 00d4 4642494c 00c8 0002 > 00b80003 c42cec16 482b 5227 > 0007fb39 c323 8da2 0920 fffe > 0001 0010 5227 5222 5221 0768000e 00140009 > 006a0070 00650067 002e0069 0063006e 0073000f 000a0004 006d0061 > 0069006e 00120035 4170706c 69636174 696f6e73 2f507265 76696577 > 2e617070 2f436f6e 74656e74 732f5265 736f7572 6365732f 6a706567 > 2e69636e 7313 00012f00 > > > > sims > > s...@ezpzapps.com > Skype: sims.jim > iChat: techietours > __ > Opportunity by Design > > > > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution