Paths in AppleScript always have been a PITA.

The easiest way to get encoded data into AppleScript is with properties. 
Example:

  theScript.Append "property theTable: ''"
  theScript.Append "tell application " + FilemakerAppName

Set the property in the script:

  theScript.ScriptPropertyValue(PropertyName) = theValue

The encoding needs to be UTF16!


On 28.09.2011, at 20:44, Louis wrote:

> 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

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

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

Reply via email to