• 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
Re: Simple substring help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple substring help


  • Subject: Re: Simple substring help
  • From: Bill White <email@hidden>
  • Date: Fri, 05 Dec 2003 12:29:39 -0500

> set string1 to "MyHD:Folder:SubFolder:File:"
>
> what's the easiest way to accomplish chopping off the "File:" at the
> end?

set string1 to "MyHD:Folder:SubFolder:File:"

tell application "Finder"

set parentFolder to container of file string1 as string

end tell

--> "MyHD:Folder:SubFolder:"

HTH,

Bill
_______________________________________________
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.

References: 
 >Simple substring help (From: Wade Williams <email@hidden>)

  • Prev by Date: RE: Simple substring help
  • Next by Date: Re: Coerce time
  • Previous by thread: Simple substring help
  • Next by thread: Re: Simple substring help
  • Index(es):
    • Date
    • Thread