• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
pulling substrings, test first
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pulling substrings, test first


  • Subject: pulling substrings, test first
  • From: "Justin Laden" <email@hidden>
  • Date: Fri, 7 Dec 2007 11:02:54 -0500

How can I get AppleScript to help me remove the "job number" out of
the following string:

Q1892_04_NGSS Exterior AM Gel.indd

I just want the "Q1892" segment.

Also, I need the code to be smart enough to refuse to take out strings
from data like this:

JetBlue | Help

I know that I should be trying to use the underscores to my advantage,
however, I don't know how to test for the job numbers.

Thanks for everyone's help so far!

-Justin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: pulling substrings, test first
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Next by Date: Re: Finder inconsistency (Was: What makes AppleScript difficult)
  • Previous by thread: Scripting iCal 3
  • Next by thread: Re: pulling substrings, test first
  • Index(es):
    • Date
    • Thread