• 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
"LabVIEW" control broken because of Leopard "Unicode text" (?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: "LabVIEW" control broken because of Leopard "Unicode text" (?)
  • From: Chris Prall <email@hidden>
  • Date: Mon, 19 Nov 2007 01:03:40 -0800


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 ??
Or, is there some other solution to getting LabVIEW to accept its AppleScript "RunVI" command under Leopard system?


Thank You,
-Chris Prall-

--------------- _______________________________________________
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
  • Follow-Ups:
    • Re: "LabVIEW" control broken because of Leopard "Unicode text" (?)
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Did 10.4.11 kill applescript?
  • Next by Date: Re: Standard (was: Re: Leopard Date Bugs)
  • Previous by thread: Re: time format, on leadZero(x)
  • Next by thread: Re: "LabVIEW" control broken because of Leopard "Unicode text" (?)
  • Index(es):
    • Date
    • Thread