Applescript droplet for Indd Script
Hello. I have an often used script that I would like to create a droplet for on my desktop. I am hoping to be able to simply drag an InDesign Document to the droplet, the Document opens in InDesign and the script runs.
I am not really familiar with Applescript, but I tried this code and saved as an app
-----
on open droppeditems
tell application "Finder"
activate
tell application "Adobe InDesign 2022"
activate
set mydocument to droppeditems
set aScriptPath to "Users:rosami:Library:Preferences:Adobe InDesign:Version 17.0:en_US:Scripts:Scripts Panel:batch_convert.jsx"
do script alias aScriptPath language javascript
end tell
end tell
end open
------
When I drag the Doc to the droplet, it opens InDesign and the Script, but not the Document. Any suggestions as to what I am doing wrong? Thank you!
