Re: Scripting Acrobat woes
Re: Scripting Acrobat woes
- Subject: Re: Scripting Acrobat woes
- From: Shane Stanley <email@hidden>
- Date: Wed, 22 Nov 2000 17:50:48 +1100
On 22/11/00 5:35 PM +1000, Pitcher, George, email@hidden, wrote:
>
Thanks for that insight. However, when I change my script to read thus:
>
>
>
tell application "Acrobat* Exchange 3.0"
>
set pagecount to count PDPage of "cactus:doc1.pdf"
>
insert pages document "cactus:doc1.pdf" after pagecount from
>
document "cactus:doc1c.pdf" starting with 1 number of pages 1
>
end tell
>
>
(the second indented line begins with 'insert' and ends with 'pages 1')
>
>
I get an error on run:
>
>
Acrobat 3.0 got an error. Can't get document "cactus:doc1.pdf"
>
>
'Cactus' is the name of my hard drive, and the pdf file is sitting in the
>
root.
>
>
Earlier experimentation with AS showed me that having "cactus:doc1.pdf"
>
allowed AS to open the file in Acrobat.
>
>
Help, cos I'm stuck.
What you open is a file or alias -- thus:
open alias "cactus:doc1.pdf"
(and I think from memory that you need to pen both documents before this
works)
Once it's open, it's a document, and you need only its name, not its path:
tell application "Acrobat* Exchange 3.0"
set pagecount to count PDPage of document "doc1.pdf"
insert pages document "doc1.pdf" after pagecount from document "doc1c.pdf"
starting with 1 number of pages 1
end tell
--
Shane Stanley, email@hidden