• 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: applescript-users digest, Vol 2 #751 - 11 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 2 #751 - 11 msgs


  • Subject: Re: applescript-users digest, Vol 2 #751 - 11 msgs
  • From: altenburg <email@hidden>
  • Date: Tue, 12 Jun 2001 18:50:13 +0200

Jan Pieter wants the file name as a string

> alias "Disk:folder1:folder2:file"
>
> How do I get just the name of the file (in the above case "file") into a
> string?

set tempString to alias "Disk:folder1:folder2"file" as string
set oldDelimiters to AppleScript's text item delimiters
set Applescript's text item delimiters to ":"
set fileName to the last text item of tempString
set Applescript's text item delimiters to oldDelimiters

-- untested

HTH,

Bert


  • Prev by Date: Re: Replace all attributes font in a quark document.
  • Next by Date: Re: Replace all attributes font in a quark document.
  • Previous by thread: Re: applescript-users digest, Vol 2 #751 - 11 msgs
  • Next by thread: Determining Whether File In Use in System 8.6-better English
  • Index(es):
    • Date
    • Thread