I am trying to write a workflow that will open specific DTP app templates. My company has a over a dozen templates in Quark that are then duplicated in InDesign that I’d like to access.
I was wondering if a handler could be written so I wouldn’t have to duplicate this code so many times?
Here is an example of one of the products using part of the script.
Thank you for your help.
set posixPathQjmcch to "/Users/Shared/Quark Templates/jumbo_hor.qpt"
set Qjmcch to POSIX file posixPathQjmcch as alias
set posixPathQjmccv to "/Users/Shared/Quark Templates/jumbo_vert.qpt"
set Qjmccv to POSIX file posixPathQjmccv as alias
if the user_choice is "QuarkXPress" and ProType is "Jumbo Label" then
display dialog "Please select a horizontal or vertical template." buttons {"Jumbo Horizontal", "Jumbo Vertical", "Cancel"}
set the user_choice to the button returned of the result
if the user_choice is "Jumbo Horizontal" then
display dialog "Are you sure you want to select Jumbo Horizontal?" buttons {"OK", "Cancel"}
set the user_choice to the button returned of the result
tell application "Finder" to open Qjmcch
else
if the user_choice is "Jumbo Vertical" then
display dialog "Are you sure you want to select Jumbo Vertical?" buttons {"OK", "Cancel"}
set the user_choice to the button returned of the result
tell application "Finder" to open Qjmccv
end if
end if
end if