• 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: Recent Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recent Items


  • Subject: Re: Recent Items
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 11 Apr 2014 10:03:22 +1000

On 11 Apr 2014, at 3:40 am, koenig.yvan <email@hidden> wrote:

I’m really bored because I didn't found an other file containing the embedded infos.

You're assuming there is such a file, but there probably isn't -- the defaults process probably keeps them in memory until it feels the need to write them. This might get you more up-to-date results:

use framework "Foundation"

on returnRecentAppPaths()
set defs to current application's NSUserDefaults's standardUserDefaults()
defs's addSuiteNamed:"com.apple.recentitems"
set theBookmarkData to (defs's valueForKeyPath:"RecentApplications.CustomListItems.Bookmark") as list
set thePaths to {}
repeat with aData in theBookmarkData
set theInfo to (current application's NSURL's resourceValuesForKeys:{current application's NSURLPathKey} fromBookmarkData:aData)
set end of thePaths to (theInfo's valueForKey:(current application's NSURLPathKey)) as text
end repeat
return thePaths
end returnRecentAppPaths

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: 
 >Recent Items (From: "koenig.yvan" <email@hidden>)
 >Re: Recent Items (From: Shane Stanley <email@hidden>)
 >Re: Recent Items (From: "koenig.yvan" <email@hidden>)
 >Re: Recent Items (From: Kevin Meaney <email@hidden>)
 >Re: Recent Items (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: names of a record's items
  • Next by Date: Re: Recent Items
  • Previous by thread: Re: Recent Items
  • Next by thread: Re: Recent Items
  • Index(es):
    • Date
    • Thread