AnsweredAssumed Answered

get name of document

Question asked by lauriehughes on Jul 18, 2016
Latest reply on Jul 25, 2016 by TonyWhite

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

end tell

but I get back

Object not found.


thanks in advance