• 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
Replacing pages in Acrobat 7 and 6 (Patrik B.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Replacing pages in Acrobat 7 and 6 (Patrik B.)


  • Subject: Replacing pages in Acrobat 7 and 6 (Patrik B.)
  • From: "Inge Eidem" <email@hidden>
  • Date: Wed, 9 May 2007 23:05:39 +0200

Solved:

But i need this last bit to finish the pussel!

In my working script i need a final functionallity.

When the Replace Pages are finish i need the template (ipdfmal.pdf) to
make a save as (to a spesific folder) and make its name the same as
the (theAddedItem), is this possible?

(Thanks to Nick for making my day!:)

----------------------------
<script>
on adding folder items to thefolder after receiving theAddedItem

set thepath to (path to desktop folder from user domain) as string

tell application "Adobe Acrobat Professional"
activate

open (thepath & "replace_pages:" & ":ipdfmal.pdf") as text
open theAddedItem as text

set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set theAddedItem to last text item of (theAddedItem as text)
set AppleScript's text item delimiters to oldDelims

replace pages document "ipdfmal.pdf" over 1 from document theAddedItem
starting with 1 number of pages 25
close document theAddedItem

end tell
tell application "Finder"
delete every item of folder (thepath & "replace_pages:")
empty trash
end tell
end adding folder items to
<script>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Text and Unicode Text
  • Next by Date: Re: Evaluating if a file exists
  • Previous by thread: Re: Text and Unicode Text
  • Next by thread: setting dmg window layout and position
  • Index(es):
    • Date
    • Thread