2013-07-20 98 views

回答

1

除了這個事實,你的小程序可能會沒有權限在Mac OS X 10.7及更高版本安裝任何東西,你應該能夠僅僅是應用程序包從任何位置的應用程序文件夾複製:

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 

如果這不適合你,那麼你需要解釋更多。

+0

感謝您的信息。但是,它是「file1.xap」,而不是「.app」,它是「.xap」。這不是一個正常的應用程序文件。上述工作適用於「.app」文件。 –

+0

這沒關係。只需將您的Application Name.app文件名改爲您需要的任何內容即可。如果我的回答對你有用,請不要忘記接受並投票支持。 – Mark

+0

我會嘗試... –

1

您需要確保.xap文件啓用了瀏覽器外(我懷疑它是)。然後,不要直接運行.xap文件,而要在瀏覽器中打開.xap並右鍵單擊它以「安裝」.xap文件。然後Silverlight將下載一個可以在OSX上運行的.app文件。

相關問題