pdf - Applescript a Variable folder location for use on multiple desktops -



pdf - Applescript a Variable folder location for use on multiple desktops -

(i'm real novice) able create apple script culling bits other posts. script batchprints pdfs folder using acrobat pro 11 engine , moves them separate folder when complete... while script works on 1 computer desktop path fixed. must modified every different computer use. there way script watch folder in variable location?

property myfolder : "hd:users:user:desktop:print:" set myfiles list folder myfolder without invisibles repeat myfile in myfiles set mycurrentfile ((myfolder string) & (myfile string)) string batchprint(mycurrentfile) end repeat on batchprint(mycurrentfile) tell application "adobe acrobat pro" activate -- bring acrobat open alias mycurrentfile -- acrobat opens new file tell application "system events" tell process "acrobat" click menu item "print..." of menu 1 of menu bar item "file" of menu bar 1 click button "print" of window "print" tell application "system events" tell process "acrobat" click menu item "close" of menu 1 of menu bar item "file" of menu bar 1 end tell end tell end tell end tell end tell tell application "finder" -- move printed file out set x (("hd:users:user:desktop:printed pdfs") text) if alias x exists beep else create new folder @ desktop properties {name:"printed pdfs"} end if move alias mycurrentfile folder "printed pdfs" end tell end batchprint

in applescript, can refer desktop folder of current user path desktop folder e.g.:

set myfolder (path desktop folder text) & "print:"

pdf applescript acrobat

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -