• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "LabVIEW" control broken because of Leopard "Unicode text" (?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "LabVIEW" control broken because of Leopard "Unicode text" (?)


  • Subject: Re: "LabVIEW" control broken because of Leopard "Unicode text" (?)
  • From: Philip Aker <email@hidden>
  • Date: Mon, 26 Nov 2007 20:33:42 -0800

On 2007-11-19, at 01:03, Chris Prall wrote:


I have been controlling National Instrument's LabVIEW program from AppleScript up thru Mac OS-X 10.4.n
www.ni.com

LabVIEW's dictionary includes:
RunVI v : Run the specified VI
RunVI list of string : The name of the VI to run. It must already be in memory.

Example: With a LabVIEW instrument named "test.vi" in memory, the following AppleScript would start the module as desired.

tell application "LabVIEW"
RunVI {"test.vi"}
end tell

note:    return class of "test.vi"
gives "string" in Tiger, but "text" in Leopard

Problem: trying the same code in Leopard gives
AppleScript Error  LabVIEW got an error: An error of type 42 has occured.

If under Tiger I try the following code:

tell application "LabVIEW"
RunVI {"test.vi" as Unicode text}
end tell

I get the exact same LabVIEW error 42 as I get in Leopard

What seems to be the problem is that LabVIEW requires the historic "string" type with simple ASCII names.
AppleScript v2.0 in Leopard now makes all "string" classes equivalent to "Unicode text"

Is there some way to create or coerce a variable argument equivalent to the historic "sting" type ??

You can try:

tell application "LabVIEW"
RunVI {"test.vi" as «class utf8»}
end tell

If that doesn't work, there could be another possibility with a combination <x-man-page://iconv> and one or another of the 'load/run script' facilities.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >"LabVIEW" control broken because of Leopard "Unicode text" (?) (From: Chris Prall <email@hidden>)

  • Prev by Date: Re: Problem with osascript command
  • Next by Date: Re: Script Editor rewrites my script, doesn't like its rewrite
  • Previous by thread: "LabVIEW" control broken because of Leopard "Unicode text" (?)
  • Next by thread: Re: "LabVIEW" control broken because of Leopard "Unicode text" (?)
  • Index(es):
    • Date
    • Thread