AppleScript for creating a new folder
James.Cass at sealedair.com
James.Cass at sealedair.com
Wed Jul 9 16:05:01 EDT 2003
Hmmm...
This worked fine for me, and merrily created the folder with diacritical
marks...
--------------------------------------------------
tell application "Finder"
set targetfolderpath to "Macintosh HD:Users:cassj:testfolder" --
"testfolder" already exists
set newfoldername to "ååå-éééé-îîî-øøø-üüü"
if folder (targetfolderpath & ":" & newfoldername) exists then
--do nothing
else
make new folder in folder targetfolderpath with properties
{name:newfoldername}
end if
end tell
--------------------------------------------------
I'm using Script Editor 2.0 (v20) (Beta Version)
-Cassj
|---------+------------------------------------->
| | Yves COPPE |
| | <yvescoppe at skynet.be> |
| | Sent by: |
| | use-revolution-admin at lists|
| | .runrev.com |
| | |
| | |
| | 07/09/03 04:42 PM |
| | Please respond to |
| | use-revolution |
|---------+------------------------------------->
>----------------------------------------------------------------------------------------------------------------------------|
| |
| To: use-revolution at lists.runrev.com |
| cc: |
| Subject: Re: AppleScript for creating a new folder |
>----------------------------------------------------------------------------------------------------------------------------|
Hi
>
> Here's yet ANOTHER way. I'm running Mac OS X 10.2.5.
> -- ----------------------------------------------
> tell application "Finder"
> set targetfolderpath to "Macintosh HD:Users:cassj:testfolder" --
> "testfolder" already exists
> set newfoldername to "stoopidunderpants"
> if folder (targetfolderpath & ":" & newfoldername) exists then
> --do nothing
> else
> make new folder in folder targetfolderpath with properties
> {name:newfoldername}
> end if
> end tell
> -- ----------------------------------------------
>
> Hope this helps....Cassj
>
>
>
>
works FINE
BUT
doesn't resolve my problem : it doesn't support diacritical
chars...!!!!????
if the new created folder has a diacritical char, the folder is not
created...
Greetings.
Yves COPPE
yvescoppe at skynet.be
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list