I have a script from an old OS9 and Quark script that I am trying to get to work in Quark 6.5 in OSX.
Can someone help with what has changed in the script to make it work in OSX?
set theDaet to date string of (current date)
set filename to (choose file of type {"FMPR", "FMP3", "FMP5"} with prompt "Choose the database to use")
set namedb to (filename as string)
tell application "FileMaker Pro"
activate
open alias namedb
set totalRecords to count record of database 1
end tell
if totalRecords > 0 then
tell application "QuarkXPress"
activate
set quarktemplate to (choose file of type {"XTMP"} with prompt "Choose the QuarkXPress template to use")
open quarktemplate use doc prefs yes
tell document 1
repeat with i from 1 to totalRecords
tell application "FileMaker Pro"
tell record i
set fullName to cell "FIRST NAME" as string
set lastName to cell "LAST NAME" as string
set firstname to first word of fullName
set address to cell "ADDRESS" as string
set city to cell "City" as string
set state to cell "STATE" as string
set zip to cell "ZIP" as string
end tell
end tell
if i ≠1 then
make spread at end
end if
tell page i
set properties to {master spread:spread 1 of master document 1}
tell every story of every text box of page i of document 1
(*try
set (every text whose it = "<date>") to theDate
end try*)
try
set (every text whose it = "<name>") to fullName
end try
try
set (every text whose it = "<lastName>") to lastName
end try
try
set (every text whose it = "<address>") to address
end try
try
set (every text whose it = "<city>") to city
end try
try
set (every text whose it = "<state>") to state
end try
try
set (every text whose it = "<zip>") to zip
end try
end tell
end tell
end repeat
end tell
end tell
end if
Thanks, Chad
Model: G5
Browser: Safari 417.9.2
Operating System: Mac OS X (10.4)