Re: make a new folder within an exisitng folder
Re: make a new folder within an exisitng folder
- Subject: Re: make a new folder within an exisitng folder
- From: Laine Lee <email@hidden>
- Date: Thu, 29 Sep 2005 16:42:58 -0500
- Thread-topic: make a new folder within an exisitng folder
On 9/29/05 4:17 PM, "Michelle Steiner" <email@hidden> wrote:
>
> On Sep 29, 2005, at 1:22 PM, Laine Lee wrote:
>
>>> set abc to alias ((path to startup disk as text) & "ABC")
>>> tell application "Finder"
>>> make new folder at abc with properties {name:"my folder"}
>>> end tell
>>
>> If you are using OS X, I think this may be the easiest way. (When
>> you use
>> it, be sure it's only 2 lines.)
>>
>> set abc to POSIX path of ((path to startup disk as Unicode text) &
>> "ABC:my
>> folder")
>> do shell script "mkdir -p" & space & (quoted form of abc)
>
> Why use shell script if you can do it in vanilla Applescript?
I guess it depends on how deep you might need to go, how the source of the
path originates, and whether it makes a difference to use fewer lines of
script.
--
Laine
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden