• 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: Split path components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Split path components


  • Subject: Re: Split path components
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 06 Jul 2016 09:17:01 +1000

On 5 Jul 2016, at 11:56 PM, Andreas Kiel <email@hidden> wrote:

set text item delimiters to "/"

You need to be specific:

set AppleScript's text item delimiters to "/".

The ASObjC equivalent would be something like:

set templFilePath to current application's NSString's stringWithString:"/Users/me/Movies/Motion Templates.localized/Titles.localized/Lower Thirds.localized/Boxes/Boxes Copy/Boxes Copy.moti"
return (templFilePath's componentsSeparatedByString:"/") as list

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Split path components (From: Andreas Kiel <email@hidden>)

  • Prev by Date: Split path components
  • Next by Date: Re: Split path components
  • Previous by thread: Split path components
  • Next by thread: Re: Split path components
  • Index(es):
    • Date
    • Thread