[DEV] Source Applescript différent d'un poste à l'autre
Bonjour,
Je débute en apple script (environnement mac oblige)
Sur le poste d'un collègue dans un script, il y a la syntaxe suivante :
Code:
1 2 3 4
| set the wtfi_File to the wtfi_File as text
set the open_target_file to open for access file wtfi_File with write permission
set theContent to (read file wtfi_File as {text})
set newContent to (change wtfi_fromString into wtfi_toString in theContent with regexp) |
Lorsque je prends son code source sur mon poste et que j'ouvre le code, j'ai ceci :
Code:
1 2 3 4
| set the wtfi_File to the wtfi_File as text
set the open_target_file to open for access file wtfi_File with write permission
set theContent to (read file wtfi_File as {text})
set newContent to («event SATIRPLl» wtfi_fromString with «class UsGR» given «class by »:wtfi_toString, «class $in »:theContent) |
Si je corrige la 4 ème ligne, comme dans mon 1er exemple ci-dessus, j'ai l'erreur suivante :
Citation:
Syntax error : "," prévu, mais identificateur trouvé.
A quoi est dû ce phénomène étrange que nous ne nous expliquons pas ?
Merci d'avance.