Applescript for creating a new folder

Ken Ray kray at sonsothunder.com
Wed Jul 9 13:06:27 EDT 2003


Yves,
 
You can't use "/"-delimited paths in AppleScript (or I haven't been able
to get it to work). So I convert to ":" delimited, as in:
 
tell application "Finder"
  set tPath to "HD:Macintosh:Users:<myName>:test:testing"
  make new folder to tPath
end tell
 
This should work (of course, swap in the right path),
 
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Yves COPPE
Sent: Wednesday, July 09, 2003 12:35 PM
To: use-revolution at lists.runrev.com
Subject: Applescript for creating a new folder


Hi,

No sucess with my problem for creating a new folder with applescript

that is my script


tell application "Finder"
set tPath to "HD Macintosh/users/<myname>/test/testing"
make new folder to tPath
end tell

doesn't work ?????

HELP

Greetings.

Yves COPPE
yvescoppe at skynet.be

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030709/f0b1a247/attachment.html>


More information about the use-livecode mailing list