We have MultiAd Creator 7.0.4 and we are migrating the ads from this version. I have a script that iterates through the elements for duplication.
It works if run from the script editor. If I save the script as an application it gives an error that the class of the element can not be made into a string. A screenshot of the error is attached as well.
The portion of the script that is failing:
---------------------------------------
tell application "MultiAd Creator Pro"
set everyprop to properties of every element of spread 1 of document 1
end tell
set countelements to count of items of everyprop
repeat with z from countelements to 1 by -1
tell application "MultiAd Creator Pro"
set thisprop to item z of everyprop
if (class of thisprop as string) is "path element" or (class of thisprop as string) is "starburst element" then
my pathhandler(thisprop)
else if (class of thisprop as string) is "oval element" then
my makeoval(thisprop)
else if (class of thisprop as string) is "rectangle element" then
my testrect(thisprop)
else if (class of thisprop as string) is "line element" then
my makeline(thisprop)
else if (class of thisprop as string) is "graphic element" then
my solographic(thisprop)
else if (class of thisprop as string) is "border element" then
my borderplace(thisprop)
else
my grouphandler(thisprop)
end if
end tell
end repeat