Batch Find & Replace

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)

Batch Find & Replace

Postby sparexstudio » 22 Oct 2013, 08:27

Please Help!I'm a complete newbie to Applescript and in need of some guidance.I need a script to run a find and replace on multiple Quark files. I've trawled through the forums and found a script which runs on files which are open in Quark but cannot get it to run automatically (just leave it to process an entire folder).The following script works on multiple files already open in Quark.tell application "QuarkXPress"tell every documenttryset every text of every story where it is "a" to "b"set every text of every story where it is "c" to "d"set every text of every story where it is "e" to "f"end tryend tellend tellHow do I get this to process a folder of documents, running the find / replace, saving and closing?Any help will be greatly appreciatedMany ThanksJohn
sparexstudio
 
Posts: 1
Joined: 22 Oct 2013, 13:09

Re: Batch Find & Replace

Postby franz.wohlkoenig » 15 Jul 2014, 05:45

Hy,

thats helped me: viewtopic.php?f=21&t=26249

Regards
27" iMac • 3,1 GHz Intel Core i5 • 12 GB Memory • System: 10.10.5
XPress since 3.1, actual 2015
User avatar
franz.wohlkoenig
 
Posts: 46
Joined: 15 Jul 2014, 05:43
Location: Carinthia, Austria, Europe

Re: Batch Find & Replace

Postby Matthias Guenther (Quark) » 15 Jul 2014, 05:59

Hi Franz,

great to hear that it worked well for you. I just posted an additional little trick underneath the post, maybe that's helpful too.

Thanks
Matthias
Feel there should be more chatting, more tips, more user interaction?
Join us on Facebook, a forum-like group with over 2,000 QuarkXPress fans interacting:
http://www.facebook.com/groups/quarkxpress



Image
User avatar
Matthias Guenther (Quark)
Quarkian
Quarkian
 
Posts: 5084
Joined: 04 Jun 2004, 15:06
Location: http://bit.ly/QuarkHamburg

Re: Batch Find & Replace

Postby franz.wohlkoenig » 23 Jul 2014, 10:53

Hy Matthias,

thanks for Info. I know i need it in future*g

Regards
27" iMac • 3,1 GHz Intel Core i5 • 12 GB Memory • System: 10.10.5
XPress since 3.1, actual 2015
User avatar
franz.wohlkoenig
 
Posts: 46
Joined: 15 Jul 2014, 05:43
Location: Carinthia, Austria, Europe

Re: Batch Find & Replace

Postby thamby » 26 Aug 2014, 08:21

I am new to apple scripting in Quark.
I have a few things I would like to do by scripting in Quark, if it's possible.

If I were doing this manually, I would use the Find/Replace feature. To save time it would be great to have an apple script that would handle this!

1. I would like to replace all the \h's with nothing in the document.

2. I need the open type small caps changed to the attribute of small caps.

3. Also the underline styles changed to the attribute of underline.


(We have a program that we use to export text and images for epub files and if the attributes aren't used, the formatting gets stripped!)

Could someone assist me, please!
thamby
 
Posts: 2
Joined: 31 Mar 2014, 08:21


Return to QuarkXPress 8, 9 & 10: AppleScript

Who is online

Users browsing this forum: No registered users and 1 guest