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 |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | .runrev.com |
| | |
| | |
| | 07/09/03 04:42 PM |
| | Please respond to |
| | use-revolution |
|---------+------------------------------------->
>----------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| 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
[EMAIL PROTECTED]
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution