Thursday, July 19, 2018

#1 2003-05-28 08:41:01 pm

Ray Barber
Site Admin
From:: Lake Dallas, Texas
Registered: 2002-11-20
Posts: 348

Path to...too

You can use the result of the path to command to tell the Finder where to
make the new folder.

As for creating multiple levels of folders, you have to make them one at a
time. You can use the 'exists' command to test for the existence.

OS version: OS X


set appSupportPath to path to application support from user domain
tell application "Finder"
if exists folder ((appSupportPath as string) & "MyFolder") then
-- folder exists, so copy files, or whatever
make new folder at appSupportPath with properties {name: "MyFolder"}
end if
end tell

Ray Barber
Admin | MacScripter

Filed under: Finder



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)