• 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: How do I change path punctuation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I change path punctuation?


  • Subject: Re: How do I change path punctuation?
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 03 Dec 2001 12:10:48 -0800

On 12/3/01 11:49 AM, "John Tuttle" <email@hidden> wrote:

> Given:
>
> display dialog "Please select a folder of images." buttons {"Ok"}
> set imgfolder to (choose folder) as text
>
> Result "John's HD:slides:html:"
>
> How do I change the colons in the retrieved text to forward slashes on the
> fly?

set str to "John's HD:slides:html:"
set {tids, AppleScript's text item delimiters} to {AppleScript's text item
delimiters, {":"}}
set ls to text items of str
set AppleScript's text item delimiters to {"/"}
set str to ls as string -- or "" & ls
set AppleScript's text item delimiters to tids -- should be {""}
str

--> "John's HD/slides:html/"

--
Paul Berkowitz


References: 
 >How do I change path punctuation? (From: "John Tuttle" <email@hidden>)

  • Prev by Date: Re: one stay open applet can't start another?
  • Next by Date: Re: replace / in filename with _
  • Previous by thread: How do I change path punctuation?
  • Next by thread: Re: How do I change path punctuation?
  • Index(es):
    • Date
    • Thread