Re: Pagemaker script - urgent help needed
Re: Pagemaker script - urgent help needed
- Subject: Re: Pagemaker script - urgent help needed
- From: has <email@hidden>
- Date: Fri, 22 Mar 2002 21:46:57 +0000
The Webmaster at Net 2 Press wrote:
>
Heelllllppppp.
>
>
I have a customer who has supplied me with a Pagemaker file (all text) that
>
lists vendors, their product, and booth # that they will be at for this show
>
(100 pages). My problem is that she entered all information in upper case
>
but has now decided that she wants everything in upper/lower case and
>
doesn't want to re-type it all.
>
>
Is there anyone who could write me script that would do this for me? I have
>
never done any scripting so would not even know where to begin. If it
>
helps, she also has the file as a tab delimited text file.
PageMaker has a Uppercase/Lowercase/Capitalise option buried somewhere in
it. If that's all you need then I'd suggest using that - it's the simplest
option.
If you need something more sophisticated (e.g. capitalise one column,
lowercase another), you could use the Find-And-Replace-on-Steroids known as
'grep' to modify the original tab-delimited text file. Text editors such as
BBEdit have this built in as part of their Find & Replace - takes a little
swotting up to get the hang of writing regular expressions (they're a bit
cryptic at first), but they're jolly useful things when you need to thrash
large amounts of text. Well worth your time to learn imo.
Writing a script to trawl through the text file changing stuff is an option
if neither of the above will cut it. AppleScript isn't the ideal language
for doing heavy text manipulations as it's a bit feature-light and
restricted in that department, but it can be done if you really need to.
Writing a PageMaker script to make changes to the text within PM would be
more work than it's worth - PM has its own (fairly powerful) scripting
language, but for making text alts any of the above methods would be
simpler.
If you need more help, post a couple lines of tab-delimited text here along
with details of the exact changes needed.
HTH
has
p.s. In future, you might encourage your client to enter text normally,
then use PM's styles to apply the desired formatting (e.g. all-caps). Much
more flexible working method.
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.