problem with a script Quarkxpress Osx Lion Xpress 9

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)
Post Reply
jpkatana974
Posts: 0
Joined: 23 Nov 2012, 14:17

problem with a script Quarkxpress Osx Lion Xpress 9

Post by jpkatana974 » 23 Nov 2012, 08:21

HelloI can not run a script on osx which functioned under OS 9. following error message "It is impossible to" data FXVMC8E36D03 "to number"Enclosed the script- Adjustment of block content-- Ajustement d'un bloc son contenu tell application "QuarkXPress"tell document 1set vertical measure to millimetersset horizontal measure to millimeterstell current pageset wPB to coerce (bottom of bounds) as numberend telltell text box 1-- stockage des (4) coordonnes du bloc de texte set wt to (top of bounds) as numberset wl to (left of bounds) as numberset wb to (bottom of bounds) as numberset wr to (right of bounds) as number-- Agrandissement du bloc de texte jusqu'en bas de page set bounds to {wt, wl, wPB, wr}-- Obtention d'informations sur le dernier caractre tell last character-- de faon relative au dbut du bloc set wBL to (baseline) as numberset wDe to (descent) as numberend tell-- Restriction de la hauteur du bloc -- a la position du dernier caractre, augmente de 1/10e de mm set bounds to {wt, wl, wt + wBL + wDe + 2, wr}end tellend tellend tell

Jean-Marie Schwartz
Posts: 1174
Joined: 23 Nov 2004, 04:30

problem with a script Quarkxpress Osx Lion Xpress 9

Post by Jean-Marie Schwartz » 25 Nov 2012, 21:59

Well, basically the same answer as on MacBidouille [;)]
tell application "QuarkXPress9311"
tell document 1
set vertical measure to millimeters
set horizontal measure to millimeters
set PH to page heightset {T, L, B, R} to (bounds of current box as list)
set bounds of current box to {T, L, PH, R}
tell last character of current box
-- de faon relative au dbut du bloc
set wBL to (baseline) as number
set wDe to (descent) as number
end tell
set bounds of current box to {T, L, (wBL + wDe + (T as real)), R}
end tell
end tell

Post Reply

Return to “QuarkXPress 8, 9 & 10: AppleScript”