Jump to content
Server Maintenance This Week. ×

Acrobat X Reader enable on Lion


This topic is 3730 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Loaded Acrobat Pro X onto my Lion machine to discover that there is a big change to the menu structure

So if anyone is interested here is some Applescript to Reader Enable a form/ file

Requires the file to be open first.

Feel free to improve




on replace_chars(this_text, search_string, replacement_string)

set AppleScript's text item delimiters to the search_string

set the item_list to every text item of this_text

set AppleScript's text item delimiters to the replacement_string

set this_text to the item_list as string

set AppleScript's text item delimiters to ""

return this_text

end replace_chars



-- make this whatever path you want

set target to path to documents folder

--set target to (target as string) & "myFolder:mySubfolder:"

tell application "Adobe Acrobat Pro"

set docName to name of front document

-- change this how you see fit

set fileName to my replace_chars(docName, ".pdf", "_enabled.pdf")

set eName to (target as string) & fileName

end tell



try

tell application "Finder"

  if exists file eName then

   delete file eName

  end if

end tell



tell application "System Events"

  tell process "Acrobat"

   set frontmost to true

   click menu item "Enable Additional Features..." of menu 1 of menu item "Reader Extended PDF" of menu 1 of menu item "Save As" of menu 1 of menu bar item "File" of menu bar 1

   delay 0.2

   keystroke return

   set saveDialogActive to true

   --put fileName into dialog box

   set value of text field 1 of window "Save" to fileName

   click button "Save" of window "Save"

  end tell

end tell



tell application "System Events"

  tell process "Acrobat"

   click menu item "Close" of menu 1 of menu bar item "File" of menu bar 1

  end tell

end tell

set result to true

on error

set result to false

end try

result



Link to comment
Share on other sites

  • 1 year later...

and Acrobat XI has changed the menu structure agin so after some trial and error you will need this line instead:

--Acrobat Pro XI
click menu item "Enable More Tools (includes form fill-in & save)..." of menu 1 of menu item "Reader Extended PDF" of menu 1 of menu item "Save As Other..." of menu 1 of menu bar item "File" of menu bar 1
Link to comment
Share on other sites

This topic is 3730 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.