RE: Scripting Acrobat woes
RE: Scripting Acrobat woes
- Subject: RE: Scripting Acrobat woes
- From: "Pitcher, George" <email@hidden>
- Date: Wed, 22 Nov 2000 06:35:17 -0000
Shane,
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.
George
>
-----Original Message-----
>
From: Shane Stanley [mailto:email@hidden]
>
Sent: 21 November 2000 21:10
>
To: AS lists
>
Subject: Re: Scripting Acrobat woes
>
>
>
On 22/11/00 3:13 AM +1000, Pitcher, George,
>
email@hidden, wrote:
>
>
> tell application "Acrobat Exchange 3.0"
>
> set pagecount to count PDPages of "myfile"
>
> insert pages "myfile"
>
> after pagecount
>
> from "sourcefile"
>
> starting with 1
>
> number of pages 1
>
> end tell
>
>
If myFile is the name of the document, you should be saying:
>
>
document "myfile"
>
>
If it's a reference, you should be saying myfile without the
>
quotes. Same
>
with sourcefile.
>
>
And,
>
>
> insert pages "myfile"
>
> after pagecount
>
> from "sourcefile"
>
> starting with 1
>
> number of pages 1
>
>
should all be on one line.
>
>
--
>
Shane Stanley, email@hidden
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users