Why an Acrobat Script Only Works Once?
Why an Acrobat Script Only Works Once?
- Subject: Why an Acrobat Script Only Works Once?
- From: Brendan Regan <email@hidden>
- Date: Tue, 25 May 2004 08:52:53 -0700 (PDT)
Hello:
We publish one large monthly document that we
distribute as a whole and then divide it into 1-page
pdf's for a separate distribution. I wrote an
Applescript for Acrobat 5.0 that replaces the pages of
last month's 1-page pdf's with the appropriate page
from the current month's source document (named
"source.pdf"):
tell application "Acrobat 5.0"
replace pages document "page3.pdf" over 1 from
document "source.pdf" starting with 3 number of pages
1 without merge notes
replace pages document "page4.pdf" over 1 from
document "source.pdf" starting with 4 number of pages
1 without merge notes
...so on and so on
This script works fine once on a given set of PDF's
(say, updating April's 1-page pdf's to reflect May's
pages). The second time I try it (updating May's PDF's
to contain June's document pages), nothing happens: No
error message, no change happpens to the one page
PDF's - nothing. The pinwheel comes up and then stops
as if the script executed successfully, but the 1-page
PDF's haven't updated. When I close them, however, a
save changes dialog does come up, though there is no
noticable change to the PDF's.
Is this a file corruption issue, or is there something
else? I usually Option-drag the entire folder of
1-page PDF's to copy them all for the following month.
Is that an issue? If anyone has experienced something
sililar or knows what I'm doing wrong I'd really
appreciate your help.
Thanks,
Brendan Regan
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.