I regularly change jobs and each new job I rename a copy of my database to reflect the job name
However each time I do this all of the applescripts I have stop working because they ask for "Tell document "foobar""
and since I have renamed the document it they dont work and i have to go thru all my code and adjust.
Is there any way to ask for the current name of the document? then I could set it to a variable and try "Tell document job_name_var"
I have tried
tell application "FileMaker Pro Advanced"
set doc to document name
display dialog doc
but I get back
Object not found.
thanks in advance