Jump to content

 
Photo

Selecting by Text Attributes in Illustrator

- - - - -

  • Please log in to reply
33 replies to this topic

#16
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,312 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

I would love to have functionality that lets me choose text similar to some text that is selected. By the way - the magic wand... you can't do it with it?
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#17
Nick Springer

Nick Springer

    CartoTalk Founder Emeritus

  • Moderator
  • PipPipPipPipPipPip
  • 939 posts
  • Gender:Male
  • Location:Crosswicks, NJ
  • Interests:Cartographic Design, Print Maps, Graphic Design, Web Development, Ultimate Frisbee
  • United States

In response to Rudy's original request I helped him by creating 2 basic scripts for Illustrator that select text objects based on the currently selected item.

One script selects based on the same font size, and the second selects based on same font size AND typeface (including styles like bold or italic). Just select the text block you want to match and run the script. It will select all other matching text blocks.

The scripts are attached here for anyone else that wants them. They are in JavaScript so will work on Mac or PC.

[Edit: I have removed the link here because the scripts have been updated - see the later post for the new package]

I am going to work on text color selection next.

Nick Springer

Director of Design and Web Applications: ALK Technologies Inc.
Owner: Springer Cartographics LLC


#18
rudy

rudy

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 745 posts
  • Gender:Male
  • Location:Canada
  • Canada

All I can say is that they work GREAT! Thanks Nick!

#19
Hans van der Maarel

Hans van der Maarel

    CartoTalk Editor-in-Chief

  • Admin
  • PipPipPipPipPipPipPip
  • 3,887 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cartography, GIS, history, popular science, music.
  • Netherlands

All I can say is that they work GREAT! Thanks Nick!


I agree! Thank you very much, Nick!
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics

#20
Nick Springer

Nick Springer

    CartoTalk Founder Emeritus

  • Moderator
  • PipPipPipPipPipPip
  • 939 posts
  • Gender:Male
  • Location:Crosswicks, NJ
  • Interests:Cartographic Design, Print Maps, Graphic Design, Web Development, Ultimate Frisbee
  • United States

I have updated the script package to include one that selects by typeface alone as well.

Attached File  Select_Text_Scripts.zip   1.27KB   191 downloads

Includes:
Select Same Text Size
Select Same Typeface
Select Same Text Size and Typeface

Nick Springer

Director of Design and Web Applications: ALK Technologies Inc.
Owner: Springer Cartographics LLC


#21
mike

mike

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 320 posts
  • Gender:Male
  • Location:Toronto, ON
  • Canada

I have updated the script package to include one that selects by typeface alone as well.

Attached File  Select_Text_Scripts.zip   1.27KB   191 downloads

Includes:
Select Same Text Size
Select Same Typeface
Select Same Text Size and Typeface


Nice, this will be very helpful. Thanks!

Now... if only it could be made into a button/menu option .... ;)

#22
ELeFevre

ELeFevre

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 1,049 posts
  • Gender:Male
  • Location:Louisville, Colorado USA
  • Interests:Cartography, musical instruments, reading, hiking, craft beer
  • United States

This is great Nick, Post of the Year in my book! Thanks.

Mike, we might be able to add the script to an Action using something like Insert Menu Item in the Actions palette fly-out menu. Just a wild guess. I've tested out the scripts and they work great, but I haven't tried using one with a Action. Might be worth playing with and looking into.



#23
rudy

rudy

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 745 posts
  • Gender:Male
  • Location:Canada
  • Canada

Nick and any one else that's using the scripts -

The scripts work fine. I have noticed, however, that on larger files (e.g. greater than 10 MB in size) that it can take quite awhile for the script to run through all the objects (e.g. 5 to 10 minutes). It still works greater and is a time saver for us but just be ready to do something else ofr a while when running them on the larger files.

#24
Nick Springer

Nick Springer

    CartoTalk Founder Emeritus

  • Moderator
  • PipPipPipPipPipPip
  • 939 posts
  • Gender:Male
  • Location:Crosswicks, NJ
  • Interests:Cartographic Design, Print Maps, Graphic Design, Web Development, Ultimate Frisbee
  • United States

I have noticed, however, that on larger files (e.g. greater than 10 MB in size) that it can take quite awhile for the script to run through all the objects (e.g. 5 to 10 minutes).

That's the problem with using JavaScript instead of creating a C++ add-in, it is very inefficient. Unfortunately I have zero C++ skills.

Nick Springer

Director of Design and Web Applications: ALK Technologies Inc.
Owner: Springer Cartographics LLC


#25
rudy

rudy

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 745 posts
  • Gender:Male
  • Location:Canada
  • Canada

That's the problem with using JavaScript instead of creating a C++ add-in, it is very inefficient. Unfortunately I have zero C++ skills.

It wasn't meant as a complaint, Nick, just a warning. I'm certainly very happy with what you did for me.

#26
Rob

Rob

    Legendary Contributor

  • Moderator
  • PipPipPipPipPip
  • 418 posts
  • Gender:Male
  • Location:Kailua, Hawaii
  • Interests:anything outside.
  • United States

This is great Nick, Post of the Year in my book! Thanks.


Seriously. Downloaded yesterday and have already used it three times, and passed it foward a couple more.

Muchas Gracias!!!!

#27
Nick Springer

Nick Springer

    CartoTalk Founder Emeritus

  • Moderator
  • PipPipPipPipPipPip
  • 939 posts
  • Gender:Male
  • Location:Crosswicks, NJ
  • Interests:Cartographic Design, Print Maps, Graphic Design, Web Development, Ultimate Frisbee
  • United States

That's the problem with using JavaScript instead of creating a C++ add-in, it is very inefficient. Unfortunately I have zero C++ skills.

It wasn't meant as a complaint, Nick, just a warning. I'm certainly very happy with what you did for me.

I didn't take it as a complaint... I agree with you. I should have added a smiley face :)

Nick Springer

Director of Design and Web Applications: ALK Technologies Inc.
Owner: Springer Cartographics LLC


#28
Rick Dey

Rick Dey

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 302 posts
  • Gender:Male
  • Location:Santa Rosa, CA
  • Interests:Illustrator, MAPublisher, GIS, Street Maps
  • United States

Great tool Nick, Thanks.

I am frequently in awe of the talents and resources we have here on CartoTalk and the willingness to share!
Rick Dey

#29
dekkerb

dekkerb

    Newbie

  • Validated Member
  • Pip
  • 4 posts
  • Gender:Male
  • Location:Utrecht
  • Interests:GIS for mapping in Infographics
  • Netherlands

Hi guys, first time I'm adding something here.

I happen to know that Nathaniel Kelso is working on a VERY extensive Font search & replace plugin.
See some of his scripts on //kelsocartography.com/scripts/ and if you ask him very nicely, he might let you in on the beta-test list. It is CS3, by the way.

Hope somebody still reads the older stuff?

#30
VesSun

VesSun

    Newbie

  • New Member
  • Pip
  • 1 posts
  • Bulgaria

I have updated the script package to include one that selects by typeface alone as well.

attachicon.gifSelect_T..._Scripts.zip

Includes:
Select Same Text Size
Select Same Typeface
Select Same Text Size and Typeface

You have no idea how thankful I am for these scripts!

 

May the greatest luck be with you!

 

Thank you, thank you, thank you! :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->