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

Re: Ghost Comments


  • Subject: Re: Ghost Comments
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 18 Feb 2012 18:09:55 +0100

Le 18 févr. 2012 à 11:50, Iurista GmbH a écrit :

> Well, it's really easy to check that it is stored in .DS_STORE:
> Enable invisibles to be shown
> Create a new folder, manually or by your script
> Add Comment
> Open the .DS_Store with TextEdit.app, et voilà, you will see your comment, among some unreadable scratch
> Rudolf

Hello Rudolf,

Fine: it seems you have found the cache I was looking for; since 10.4, I never thought to check whether comments were still stored in .DS_Store files as well.

So, it seems that the Finder still makes use of those files for storing and retrieving comments, even under 10.7, and may sometimes be desynchronized with what is happening system-wide: just make sure the Finder doesn't notice some changes, so that it doesn't have the opportunity to update the .DS_Store file.

This should illustrate what I meant with "it seems that the Finder is somehow (and possibly somewhat erroneously) caching the info":

	set folderPath to POSIX path of (get POSIX path of (file ((path to desktop as text) & "TEST:")))
	tell application "Finder"
		if exists folder "TEST" of desktop then delete folder "TEST" of desktop
		make new folder at desktop with properties {name:"TEST"}
		set comment of result to "Hey!"
		tell me to do shell script "mdls -name kMDItemFinderComment " & folderPath
		--> "kMDItemFinderComment = \"Hey!\""
		comment of folder "TEST" of desktop
		--> "Hey!"
		tell me to do shell script "rm -R " & folderPath
		make new folder at desktop with properties {name:"TEST"}
		tell me to do shell script "mdls -name kMDItemFinderComment " & folderPath
		--> "kMDItemFinderComment = (null)"
		comment of folder "TEST" of desktop
		--> "Hey!"
	end tell

Axel


 _______________________________________________
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: 
 >Ghost Comments (From: Luther Fuller <email@hidden>)
 >Re: Ghost Comments (From: Axel Luttgens <email@hidden>)
 >Re: Ghost Comments (From: Iurista GmbH <email@hidden>)

  • Prev by Date: Re: Ghost Comments
  • Next by Date: Rép: Ghost Comments
  • Previous by thread: Re: Ghost Comments
  • Next by thread: Re: Ghost Comments
  • Index(es):
    • Date
    • Thread