Hi All,
I have downloaded the below script, and while running it I am getting problem
tell application "QuarkXPress"
activate
tell document 1
set thisBox to object reference of current box
display dialog "Convert the text:" buttons {"Cancel", "To XPress Tags", "From XPress Tags"}
if button returned of result is "From XPress Tags" then
my ConvertFromXPressTags(thisBox)
else
my ConvertToXPressTags(thisBox)
end if
end tell
end tell
on ConvertFromXPressTags(thisBox)
tell application "Finder"
set tempFolder to path to «class temp» as text
end tell
tell application "QuarkXPress"
set import styles to true
set convert quotes to true
tell document 1
set tempFilePath to tempFolder & "TempScratchFile"
save story 1 of thisBox in tempFilePath
set story 1 of thisBox to alias {tempFilePath}
end tell
end tell
end ConvertFromXPressTags
on ConvertToXPressTags(thisBox)
tell application "Finder"
set tempFolder to path to «class temp» as text
end tell
tell application "QuarkXPress"
set import styles to false
set convert quotes to false
tell document 1
set tempFilePath to tempFolder & "TempScratchFile"
--make sure to put "as "TEXT" here
save story 1 of thisBox in tempFilePath as "TEXT"
set story 1 of thisBox to alias {tempFilePath}
end tell
end tell
end ConvertToXPressTags
--I am getting problem at the below line
set tempFolder to path to «class temp» as text
Error is:
Can any one help me on it.
Regrads,
Pooja