I've been making some stuff in Applescript, to a friend of mine, and usually, with a bit of searching/researching, I'm able to overcome the problems I've been facing. However... I found a problem I'm just not understanding.
For instance, I have:
tell application "Acrobat Distiller"
Distill sourcePath inputFile1 adobePDFSettingsPath fullPathToJobOptions
end tell
If I replace it for:
tell application "/Applications/Adobe Acrobat XI Pro/Acrobat Distiller.app"
Distill sourcePath inputFile1 adobePDFSettingsPath fullPathToJobOptions
end tell
I don't have any problem... but... If I make something like:
set thePathToDistiller to "/Applications/Adobe Acrobat XI Pro/Acrobat Distiller.app"
tell application thePathToDistiller
Distill sourcePath inputFile1 adobePDFSettingsPath fullPathToJobOptions
end tell
I get an error on the "Distill sourcePath inputFile1 adobePDFSettingsPath fullPathToJobOptions" line. More exactly on the "sourcePath" word. The error is: "Syntax error: expected end of line but found identifier"
What may be the problem here? (thanks for any help you may give!) :)