Hi
I am making applescript to bring back Commando+M , Command + F etc that has disappeared in >= 10.
Adding a script and have a shortcut for it works 'good enough', but it would be best to have a 'decent dialog box'
I was looking at https://www.bluem.net/en/mac/pashua/ to create that, but I can not figure out how to pass a variable to it
Any suggestions ?
Are there any alternatives (add-ons for applescript, maybe))?
I have put the script at: http://pastie.org/10194882
the problem is line 105.
----------------
tell application "QuarkXPress"
activate
global a
-- This line will ensure a document is open
if not (exists document 1) then error "No document is open."
-- This line ensures a box is selected
if not (exists current box) then error "No box is selected." & return & "Select a box, then run this script again."
-- The following section will get the bounds to use for the grid, and then convert all the values to points
set a to left of bounds of current box
set b to top of bounds of current box
set c to width of bounds of current box
set d to height of bounds of current box
set theChoice to display dialog "left" default answer a
set left of bounds of current box to (text returned of theChoice)
set theChoice to display dialog "top" default answer b
set top of bounds of current box to (text returned of theChoice)
set theChoice to display dialog "bredde" default answer c
set width of bounds of current box to (text returned of theChoice)
set theChoice to display dialog "høyde" default answer d
set height of bounds of current box to (text returned of theChoice)
end tell