How to install and run SIlverlight application thr

2019-08-24 02:20发布

I have a Silverlight application ("file1.xap" - not ".app" it is ".xap"). How do I install and run it using AppleScript on MAC OS X?

2条回答
别忘想泡老子
2楼-- · 2019-08-24 02:23

You need to make sure that .xap file is Out-Of-Browser enabled (I suspect it is). Then instead of running the .xap file directly, open the .xap in a browser and right click it to "Install" the .xap file. Silverlight will then download a .app file that you can run on OSX.

查看更多
叼着烟拽天下
3楼-- · 2019-08-24 02:43

Besides the fact that your applet probably won't have permissions to install anything on Mac OS X 10.7 and later, you should be able to just copy the application package from any location to the applications folder:

tell application "Finder"
    copy file "Your Application Name.app" of disk "Your Application Name" to the application folder of the startup disk
    open file "TextEdit.app" of the application folder of the startup disk
end tell

If this doesn't work for you, then you need to explain more.

查看更多
登录 后发表回答