in

Quark Forums

Search/replace horizontal font scale?

Last post 04-29-2009 9:19 AM by zbrntt. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 04-27-2009 5:45 AM

    • zbrntt
    • Not Ranked
    • Joined on 04-06-2009
    • Posts 8

    Search/replace horizontal font scale?

    Hi,

    Not sure if this is specific to Quark 6.1, but that's the version I'm using.

    I'm trying to find a way to find (and if necessary replace) horizontally scaled fonts in 6.1. I'm working on a project that will pull together material from different Quark files. Some of that material has fonts scaled at 90 p/c. I'd like to be able to run a search, or get better info from the Usage box, to see which particular pieces of text have been scaled.

    There is a little AppleScript elsewhere in these forums that does automatic font replacement (including the scaling), but automatic is not an ideal solution for me. I want to be able to search for instances of scaled text and check them off manually.

    Any ideas?

    Zoe 

  • 04-27-2009 8:12 AM In reply to

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Re: Search/replace horizontal font scale?

     I don't think this can be done outside of Applescript (though it should be).

    An Applescript could, for example, colour up every bit of scaled text, for you to examine at your leisure. If it used a special colour, you could later delete it and replace with black to put everything back to rights.

    Would this help?

  • 04-27-2009 8:21 AM In reply to

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Re: Search/replace horizontal font scale?

    If you have any Applescript experience, try running this (on a copy file, or small sample - please don't risk crashing your master doc at this stage!):

     


    tell application "QuarkXPress"
         tell document 1
              set newcolorspec to (make color spec at beginning)
              set color type of newcolorspec to CMYK type
              set CMYK color value of newcolorspec to {0, -1, -1, 0}
              set name of newcolorspec to "SCALED TYPE"
              set myref to object reference of every text style range of every story whose horizontal scale is not "100%"
              repeat with my_item in myref
                   set color of my_item to "SCALED TYPE"
              end repeat
         end tell
    end tell

  • 04-27-2009 10:36 AM In reply to

    • zbrntt
    • Not Ranked
    • Joined on 04-06-2009
    • Posts 8

    Re: Search/replace horizontal font scale?

    Thanks: I'll try it. Will this change the colour, then? 

  • 04-27-2009 4:24 PM In reply to

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Re: Search/replace horizontal font scale?

    Yes. It simply makes it easy for you to spot all the scaled text. I'm not clear exactly what you want to do with it.... At the end you can always delete the colour created by the script and replace it with black (or edit it to be black, in case you want to go back to the colour coding). Let me know how it goes... I'm assuming you know how to open the script and run it in Script Editor?
  • 04-29-2009 8:23 AM In reply to

    • zbrntt
    • Not Ranked
    • Joined on 04-06-2009
    • Posts 8

    Re: Search/replace horizontal font scale?

    Hi,

    I haven't got much experience with Script Editor, but I believe I'm running the script. However, I get an error message:

    QuarkXPress got an error: Can't get color spec. 

    It highlights the line

    set newcolorspec to (make color spec at beginning).

    I'm running Quark 6.1 on MacOSX 10.3.9 with AppleScript 1.9.3. It's a pretty old setup. Would that make a difference?

    Zoe

  • 04-29-2009 8:35 AM In reply to

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Re: Search/replace horizontal font scale?

    I've tested this on Quark 6.5 and it works fine, but have no access to 6.1. However the line is used in a book based on Quark 4, so I'm pretty sure it should work.

    Try isolating just this line, create a new, empty doc in Quark and run it. It should create  a new colour with no values assigned:

    tell application "QuarkXPress 6.5"
         tell document 1
              set newcolorspec to (make color spec at beginning)
         end tell
    end tell

    Anyone else know why this line should error? My mind's a blank...

     

  • 04-29-2009 9:19 AM In reply to

    • zbrntt
    • Not Ranked
    • Joined on 04-06-2009
    • Posts 8

    Re: Search/replace horizontal font scale?

    Hmm... Might be because I'm a dummy. Didn't realise the file had to be open :).

    It now works: all the scaled font is changed to the SCALED FONT colour. I can pick this up in the Search/Find box.

    Thank you so much!

    Zoe 

Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems