Hi
I am using Xcode 4.6.3 & indesign CC, my app has been working great, up until I had to add a few
extra features, after I had made the changes, and gone to build my app i get an error thrown in Xcode
The script this error is going to has not been touched at all, I am working on a completely different
script in my app, I have located the troubled area, and the error is pointed to the line
save document 1 to (choose file name default name theFolderName default location save_loc1 as alias)
where the “to” seems to be the problem, for the life of me I have no idea, can some body shed some light on this
for me please.
tell application "Finder"
if (the folder theFolderName of desktop exists) then
set save_loc1 to (folders of desktop whose name is theFolderName) as text
tell application "Adobe InDesign CC"
activate
save document 1 to (choose file name default name theFolderName default location save_loc1 as alias)
end tell
else
set name of folder theFile to theFolderName as text
set save_loc1 to (folders of desktop whose name is theFolderName) as text
tell application "Adobe InDesign CC"
activate
save document 1 to (choose file name default name theFolderName default location save_loc1 as alias)
end if
end tell
cheers
Budgie