Re: Acrobat
Re: Acrobat
- Subject: Re: Acrobat
- From: Shane Stanley <email@hidden>
- Date: Wed, 26 Mar 2003 12:18:13 +1100
On 26/3/03 9:48 AM +1000, Rick Norman, email@hidden, wrote:
>
The only issue I have with this is having to hard
>
code the names into the script as there may be dozens of these to do at a
>
time. Is this the only way this will work, or as an AS Kindergartner I'm I
>
missing something else.
There are several ways to do it. You could do it like this:
set destDocument to choose file with prompt "Destination Document"
set sourceDocument to choose file with prompt "Source Document"
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set nameOfDestDocument to text item -1 of (destDocument as text)
set nameOfSourceDocument to text item -1 of (sourceDocument as text)
set AppleScript's text item delimiters to oldDelims
set afterPage to 1
set firstPage to 1
set numPages to 1
tell application "Acrobat 4.0"
activate
open destDocument
open sourceDocument
insert pages document nameOfDestDocument after afterPage from document
nameOfSourceDocument starting with firstPage number of pages numPages
end tell
--
Shane Stanley, email@hidden
_______________________________________________
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.
References: | |
| >Re: Acrobat (From: Rick Norman <email@hidden>) |