Hello Christian,

I've had this problem in a few other programs, and I think I wrote to the
list about it, but still hasn't solved that problem.

Basically, I have an AppleScriptMBS to trigger a Finder's Get Info on file's
absolutepaths.

It works very well, with most files, excepted for those with accented
letters. 

So I figured this must be an encoding problem, but so far everything I tried
hasn't worked on that front...

Here's the code as it is now;

Dim lescript, gu  as string
Dim ascrpt  as appleScriptMBS
Dim f as folderItem

// f -> comes from another routine, but I have checked already that it
points to a valid file

     gu = ""

      lescript = "tell Application "+gu+"Finder"+gu+endofLine
      lescript = lescript +" open information window of item
"+gu+f.absolutePath+gu+endofLine
      lescript = lescript +"activate"+endofLine
      lescript = lescript +"end tell"+endofLine
      
      
      ascrpt = new appleScriptMBS
      ascrpt.UnicodeText=true
      ascrpt.compile defineencoding(lescript, Encodings.UTF8)
      
      ascrpt.execute


Also, I was curious, isn't there a timeOut setting, or asynchronous mode we
could use for AppleScripts ? so as to not tie the code execution to the
return of the AppleScript.

Merci!

Louis Veillette


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to