Hello
Trying to help somebody, a month ago I downloaded the trial version of Microsoft Office.
Now it's dead so I am ready to uninstall it.
Working on a script, I tried to apply it to a folder installed by Microsoft : "Macintosh HD:Users:myAccount:Documents:Données utilisateurs Microsoft:Excel Script Menu Items:
and my script failed.
I discovered that the folder contain files whose name embed antislash character. example :
nset foolishFile to "Macintosh HD:Users:myAccount:Documents:Données utilisateurs Microsoft:Excel Script Menu Items:Exemples de flux de travail de l'AutomatorConvert the format of specified Excel files\\scg.workflow"
tell application "System Events" try class of disk item foolishFile --> error number -1728 from disk item "Macintosh HD:Users:myAccount:Documents:Données utilisateurs Microsoft:Excel Script Menu Items:Exemples de flux de travail de l'AutomatorConvert the format of specified Excel files\\scg.workflow" end try try name of disk item foolishFile --> error number -1728 from disk item "Macintosh HD:Users:myAccount:Documents:Données utilisateurs Microsoft:Excel Script Menu Items:Exemples de flux de travail de l'AutomatorConvert the format of specified Excel files\\scg.workflow" end try end tell
try get info for file foolishFile on error errMsg number errNbr (errNbr as text) & ", " & errMsg --> "-43, Le fichier file Macintosh HD:Users:myAccount:Documents:Données utilisateurs Microsoft:Excel Script Menu Items:Exemples de flux de travail de l'AutomatorConvert the format of specified Excel files\\scg.workflow est introuvable." end try
Which is wrong ? Apple whose tools are fooled by the file name or Microsoft which build odd names.
I ask here because, as most of the time I name this company Merdosoft, I may be a bit biased.
Yvan KOENIG (VALLAURIS, France) dimanche 14 octobre 2012 20:16:24
|