MAC OS X Problems

Scott Rossi scott at tactilemedia.com
Wed Jul 9 01:37:01 EDT 2003


> I' tried the following
> 
> 
> on mouseUp
>  set itemDel to "/"
>  put item 1 to -2 of the filename of this stack into mypath
>  set itemdel to comma
>  put "/éééééééé" after mypath
>  put "Hello world" into tx
>  put tx into URL("file:"& mypath)
> end mouseUp
> 
> 
> so the filename contains diacriticals chars : it works fine !!!!!!!
> 
> so I don' t understand why the same script :
> 
> on mouseUp
>  set itemDel to "/"
>  put item 1 to -2 of the filename of this stack into mypath
>  set itemdel to comma
>  put "/éééééééé" after mypath
>  create folder myPath
> end mouseUp
> 
> it doesn't work.
> So my ask is : can anyone write for me a command in Applescript to do
> the same as "create folder"
> 
> as f. ex.
> 
> on CreateaFolder <thepath>
> 
> this will help me very much...

Well, first of all, they're not the same script: the first creates a file,
the second creates a folder.  Why a file works and not a folder I have no
idea, but why can't you do the following?

on mouseUp
  set itemDel to "/"
  put item 1 to -2 of the filename of this stack into mypath
  create folder (myPath & "/newuserfolder")
  rename folder (myPath & "/newuserfolder") to (myPath & "/éîøüå")
end mouseUp

Works fine here...

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list