Greetings,
I have a tiresome task of renaming hundreds of bookmarks in nearly fifty pdf books. An applescript seems like the best solution, but my scripting has not produced results. I'm using OSX 10.8.5 on a Mac mini.
What's going wrong with it?
I know the script can handle bookmarks. A script I found online works well when deleting them.
A slight modification to the first script resulted in bizarre consequences:
The consequence with this is, all of the hundreds of bookmarks are renamed "ctxt". So that's not progress, but its generally in the right direction! Any further observations or aid would be greatly appreciated. Thanks!
I have a tiresome task of renaming hundreds of bookmarks in nearly fifty pdf books. An applescript seems like the best solution, but my scripting has not produced results. I'm using OSX 10.8.5 on a Mac mini.
Code:
tell application "Adobe Acrobat Pro"
try
set (every text of every bookmark of document 1 whose it = "560-VAA") to "EPCA_April_14"
end try
end tell
What's going wrong with it?
I know the script can handle bookmarks. A script I found online works well when deleting them.
Code:
tell application "Adobe Acrobat Pro"
delete bookmarks of document 1
end tell
A slight modification to the first script resulted in bizarre consequences:
Code:
tell application "Adobe Acrobat Pro"
set name of every bookmark to text
try
set (text where it is "560-AAA") to "EPCA_April_14"
end try
end tell
The consequence with this is, all of the hundreds of bookmarks are renamed "ctxt". So that's not progress, but its generally in the right direction! Any further observations or aid would be greatly appreciated. Thanks!
Last edited: