These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

File > Exit

KCCScribe
Registered: May 21 2009
Posts: 2

I am creating a document that is hyperlink-intensive. A clickable, hyperlinked menu item on every page says "Close This File." It performs the action "Execute a menu item," "File > Exit."

It does what I want, except: Our environment is mixed, with Acrobat 5, 6, and 9 present. I am using Acrobat 9 Standard, but using "Reduce file size" to save this document as Acrobat 5.0 and later. On the older versions there is no problem, but someone clicking this link in Acrobat 9 gets an annoying (and grammatically flawed) error message, "Since one of the action results in closing a doc, the rest of the action will not be executed. Do you want to continue?"

There is only one action.

Can I bypass or suppress this error to prevent scaring the users and eliminate an extra click?

My Product Information:
Acrobat Standard 9.1.1, Windows
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Quote:
A clickable, hyperlinked menu item on every page says "Close This File." It performs the action "Execute a menu item," "File > Exit."
Just a thought, but why not try File > Close rather than File > Exit.Be well...

Be well...

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You've encountered a security restriction with a later version of Acrobat, where scripts are not allowed to execute the Exit menu item.
Starting with Acrobat 8.0, the execution of menu items through execMenuItem method was restricted to a short list of safe menus (those that you can see listed in the Actions tab when you created your hyperlink). For more information check out the JavaScript Help for [url=http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?href=JS_API_AcroJS.88.2.php&accessible=true]execMenuItem[/url].

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

Maricopa
Registered: Nov 10 2009
Posts: 5
can I have a javascript code to solve this problem,

PLEASE, I AM IN NEED OF THIS
try67
Expert
Registered: Oct 30 2008
Posts: 2398
No, because it's no longer possible.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Maricopa
Registered: Nov 10 2009
Posts: 5
thanks for your quick replay try67,

I just want to find a way to make a button to quite or exit the application ( Acrobat ), what the button do now is only closing the file, but the window of acrobat is still there.

is there a way to do that ?