Re: Odd & Even Pages
Re: Odd & Even Pages
- Subject: Re: Odd & Even Pages
- From: "Marc K. Myers" <email@hidden>
- Date: Fri, 24 Oct 2003 15:39:30 -0400
Date: Fri, 24 Oct 2003 12:48:24 -0400
Subject: Odd & Even Pages
From: Christopher MJ Tangora <email@hidden>
To: Apple Script <email@hidden>
I am starting in applescript and have ran into a problem.
I am moding the OS X applescript to rename files, but I want to add
page numbers to it. Even more specifically I am wanting to add only
even or odd page numbers. From what I have seen I will have to put in
the actual replacements manually, as in 1 = 2, 2 = 4, 3 = 6, etc. for
the evens, and just 1=2, 2=3, 3=5, etc for the odds. What I am hoping
is that someone knows a way to allow the script to only write odd or
even numbers. I haven't seen it in any of the archives or list i have
looked up.
Here's an easy way to generate an odd or even series:
set theButton to button returned of (display dialog "Which number
series do you want" buttons {"Odd", "Even"})
if theButton is "Odd" then
set startNbr to -1
else
set startNbr to 0
end if
repeat 100 times
set startNbr to startNbr + 2
log startNbr
end repeat
Marc [10/24/03 3:39:24 PM]
_______________________________________________
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.