• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Scripting Acrobat woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Finding applications (Was: Smile - new window with propertie
  • Next by Date: Re: Scripting Acrobat woes
  • Previous by thread: First time applescripter
  • Next by thread: Re: Scripting Acrobat woes
  • Index(es):
    • Date
    • Thread