Strip JSTOR first page

This simple apple script will strip the first page of a jstor document. It requires Adobe Acrobat to be installed on your machine to run. Copy it in the script editor, save it as an application, and then add it to the Finder as a button.

on run
tell application "Finder"
if selection is {} then
quit
else
set finderSelection to selection as alias list
end if
end tell
deletepage(finderSelection)
end run


on open (theList)
deletepage(theList)
end open


on deletepage(listOfAliases)
repeat with eachitem in listOfAliases
tell application "Adobe Acrobat Professional"
activate
open eachitem
set Doc_Ref to the front document
delete first page
close Doc_Ref saving yes
end tell
end repeat
end deletepage

Leave a Reply