Donnez vie à vos documents numériques !
 

Répondre à : Création d’un script d’enregistrement automatique

abracadabraPDF Forums PDF – Général Création d’un script d’enregistrement automatique Répondre à : Création d’un script d’enregistrement automatique

#61319
bebarth
Maître des clés

bonjour,
C’est effectivement très intéressant, et j’en profite pour revenir sur un post :
http://abracadabrapdf.net/forum/index.php/topic,3037.msg17388.html#msg17388

Si on adapte le script « Saving to a different file name, folder, and format » comme ceci :

var nmFichier = this.documentFileName;
// Split Path into an array so it is easy to work with
var aMyPath = this.path.split(« / »);
// Remove old file name
aMyPath.pop();
// Add new file name
aMyPath.push(nmFichier);
// Put path back together and save
this.saveAs(aMyPath.join(« / »));

…ça équivaut à faire un « Enregistrer » (j’ai testé) et là, plus besoin de fichier temporaire… :extra:

@+
:bonjour: