LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Request: Example of AppleScript'ing of lvsbutil.app

Could someone supply me with a example script of how to use the lvsbutil.app to convert a object file directly into the VI.
0 Kudos
Message 1 of 4
(2,611 Views)
I don't have an example, but this tutorial should lead you through it.

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/31dab548c369b2c6862567c8006d8fc9?OpenDocument#2
0 Kudos
Message 2 of 4
(2,611 Views)
No, not at all.
I requested an applescript example, not a guide of how to use the lvsbutil.app from the GUI.
0 Kudos
Message 3 of 4
(2,611 Views)
After (a lot of) trying and testing I got the following to work:

on convertToCIN(obj, VI)
try
set objectfile to (obj as alias)
set VIfile to (VI as alias)
tell application "lvsbutil.app"
Convert objectfile Saving as CIN For PPC In VI VIfile
end tell
VIfile
on error errMsg number errNum
display dialog "Failure: " & errMsg & " <" & errNum & "> " & ¬
" in converting " & (obj as string) & ¬
" to " & (VI as string)
return false
end try
end convertToCIN
0 Kudos
Message 4 of 4
(2,611 Views)