[<] Sujet : [AS] lire un fichier plist
De : KOENIG Yvan <anonyme@...>
Date : 2008-01-15 21:12:46
Bonsoir
il n'y a pas que la keynote dans la vie ;)
j'ai un chemin d'accès (à la mode HFS) vers un fichier pList :
set thePlist to "Macintosh
HD:Users:yvankoenig:Library:Preferences:com.apple.iWork.Numbers.plist"
Pour lire ce fichier je pensais pouvoir utiliser:
set thePlist to "Macintosh
HD:Users:yvankoenig:Library:Preferences:com.apple.iWork.Numbers.plist"
set thePlist to POSIX file thePlist
tell application "System Events"
tell contents of property list file thePlist
{value of property list item "LSDocumentDefaultSaveDirectory"}
end tell
end tell
mais ça échoue
J'ai pu vérifier que si je remplace les deux premières lignes par
set thePlist to "~/Library/Preferences/com.apple.iWork.Numbers.plist"
ça marche.
Ce qui induit la question:
comment passer du chemin HFS à un chemin utilisable pour lire le
fichier plist ?
Merci d'avance
Yvan KOENIG
_______________________________________________
Applescript_fr mailing list
anonyme@...
http://listes.patpro.net/mailman/listinfo/applescript_fr
Sujet : Re: [AS] lire un fichier plist
De : KOENIG Yvan <anonyme@...>
Date : 2008-01-15 21:18:13
Sujet : Re: [AS] lire un fichier plist
De : Daniel Varlet <anonyme@...>
Date : 2008-01-17 21:01:52
Sujet : Re: [AS] lire un fichier plist
De : KOENIG Yvan <anonyme@...>
Date : 2008-01-17 21:12:20