Re: Folder name from alias
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
;