Hallo, Stephan!
Für den gebrauch Deines Startup-Scripts auf Mac OSX würde ich es etwas umschreiben. OSX lässt ja auch das Zeichen "/" in Dateinamen zu.
Deshalb:
#targetengine "session"
main();
function main(){
var myApplicationEventListener = app.eventListeners.add("afterExport", myExportPathShow, false);
}
function myExportPathShow(myEventWithAfterExport){
var myExportFileFullName = myEventWithAfterExport.properties.fullName.toString();
var myExportedFile = File(myExportFileFullName);
var myExportedPath = myExportedFile.path;
var f = new Folder(myExportedPath);
//Show the Folder in the file system:
f.execute();
//Removing ALL events registered to app:
//app.eventListeners.everyItem().remove();
}
Danke für's Posten des Scripts. Kann ich gut gebrauchen!
Es ist wirklich interessant, was sich alles in den properties eines Events finden lässt. Auf fullName der exportierten Datei beim Export wäre ich jetzt so nicht gekommen. :-)
Hier eine Liste der Properties und Values im Event beim Export nach PDF:
//RESULTS FOR:
//for(x in myEventWithAfterExport.properties){}
/*
userInteractionLevel 1699311169 //UserInteractionLevels.INTERACT_WITH_ALL
fullName /…/…/Dateiname.pdf //Hier der volle Pfad mit Dateinamen
format Adobe PDF (Print)
eventType afterExport
target [object Document]
currentTarget [object Application]
eventPhase 1701724789 //EventPhases.BUBBLING_PHASE
bubbles true
cancelable false
timeStamp Wed Jun 25 2014 10:43:17 GMT+0200
propagationStopped false
defaultPrevented false
id 4
parent [object Document]
index 0
*/