Comment Spotlight
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jan 10 11:28:02 EST 2008
Hi René,
You can get the comment with a simple line of AppleScript:
set myComment to comment of file "Mac HD:Folder:File.txt"
After renaming the file you can set the comment:
set comment of file "Mac HD:Folder:New File.txt" to myComment
Best regards,
Mark Schonewille
--
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Quickly extract data from your HyperCard stacks with DIFfersifier.
http://differsifier.economy-x-talk.com
Op 10-jan-2008, om 17:22 heeft René Micout het volgende geschreven:
> Hello everybody,
> My question : when I use the command "rename file" to change the
> name of a file, the Spotlight comments witch can be find into
> "Infos" (in french, I dont know the name in english because the
> Finder is in french) of the file in the Finder (key apple i or key
> command i) are erased. How can I do to not lose this comments ?
> Thank you
> René
>
> Une réponse en français est la bienvenue :
> Bonjour à tous,
> Ma question : quand j'utilise la commande "rename file" pour
> changer le nom d'un fichier, les commentaires Spotlight que l'on
> trouve dans "Infos" du fichier sur le Finder (pomme i) s'effacent.
> Comment faire pour récupérer ce texte ou plutôt comment faire pour
> qu'il ne s'efface pas ?
> Merci par avance
> René
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list