• 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: Folder name from alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder name from alias


  • Subject: Re: Folder name from alias
  • From: SemiColon <email@hidden>
  • Date: Thu, 7 Dec 2000 23:12:43 -0800

At 11:48 PM -0600 12/7/00, Rick Plummer wrote:
>I need script that will extract the folder name of a folder
>dropped on an applet (for use later inthe script).
>
>e.g.:
>on open x
> tell application "Finder"
> yada
> yada
> make new folder at (location) with properties
> {name:<folder name from x>}

--Untested
on open (x)
x as string returning p
if not p's last item is ":" then
display dialog "not a folder"
return
else
set {oldTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
set nameOfx to text item -2 of p
set AppleScript's text item delimiters to oldTID
end if
--rest of script
end open

;


References: 
 >Folder name from alias (From: Rick Plummer <email@hidden>)

  • Prev by Date: Re: Folder name from alias
  • Next by Date: Re: Folder name from alias
  • Previous by thread: Folder name from alias
  • Next by thread: Re: Folder name from alias
  • Index(es):
    • Date
    • Thread