如何使用applescript搜索itunes商店的應用程序?我一直堅持這一點,錄製不起作用在iTunes中。如何使用applescript搜索itunes商店的應用程序?
0
A
回答
2
我幾年沒見過錄音工作。不過,在這種情況下,我不確定它可以。雖然iTunes是可編寫腳本的,但它似乎沒有任何直接的手段來執行商店搜索。
但是,有一種方法可以使用URL和「打開位置」執行搜索。它看起來是這樣的:
tell application "iTunes"
open location "itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/search?WOURLEncoding=ISO8859_1&lang=1&output=lm&country=US&media=software&term=ia%20Writer"
end tell
把你要搜索&後術語的文本=;這裏,ia%20Writer(%20表示空格)。
這結合了來自Ars Technica和Doug’s AppleScripts的信息。
0
這裏有一個方法,你可以使用的AppleScriptdisplay dialog
要輸入的內容應用使用傑裏·斯特拉頓提供的答案搜索在iTunes商店:
- 如果搜索有空格在裏面,腳本替換爲
%20
給你。
set theAppSearch to ""
set theAppSearch to text returned of (display dialog "App Search iTunes Store for:" default answer "" buttons {"Cancel", "OK"} default button 2)
if theAppSearch is not "" then
set theAppSearch to my replaceSpaces(theAppSearch)
tell application "iTunes"
activate
open location "itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/search?WOURLEncoding=ISO8859_1&lang=1&output=lm&country=US&media=software&term=" & theAppSearch
end tell
end if
on replaceSpaces(theString)
set AppleScript's text item delimiters to {" "}
set theString to text items of theString
set AppleScript's text item delimiters to {"%20"}
set theString to theString as text
set AppleScript's text item delimiters to {""}
return theString
end replaceSpaces
相關問題
- 1. iTunes搜索商店api
- 2. 如何使用Applescript搜索iTunes?
- 3. 如何用curl搜索應用商店
- 4. 如何在Android Google地圖應用程序中搜索商店?
- 5. 如何從iPhone應用程序鏈接到iTunes商店?
- 6. 從iTunes應用商店購買ipad應用程序
- 7. 商店的搜索功能找不到應用程序
- 8. 將iPhone應用程序的構建提交給iTunes應用程序商店
- 9. Magento:根據商店的程序搜索
- 10. iTunes音樂商店鏈接製作 - 如何從我的應用程序內搜索?
- 11. 關於應用程序提交到蘋果的iTunes商店
- 12. Itunes商店錯誤上傳與Xcode6的應用程序GM
- 13. 未連接到iTunes商店的iPhone應用程序
- 14. AutoCompleteBox或組合框與搜索? (Windows商店應用程序)
- 15. 應用程序不顯示在鉻網上商店搜索
- 16. 在Windows Phone商店中搜索時應用程序不可見
- 17. 應用程序名稱保留在通過iTunes應用程序商店連接
- 18. 如何在使用Applescript的郵件應用程序中使用搜索欄?
- 19. 如何沙盒(應用程序商店)
- 20. 搜索Windows商店應用文本
- 21. iTunes商店:應用關鍵字搜索優化。字符串智能索引?
- 22. 如何使用Windows應用商店應用程序調試庫
- 23. Windows商店應用程序
- 24. 如何讓我的Android應用程序在Play商店上無法搜索?
- 25. Rails從iTunes商店加載應用程序評論
- 26. 關於應用程序在iTunes商店提交
- 27. 困難提交iPhone應用程序在iTunes商店
- 28. 如何將應用程序提交到應用程序商店?
- 29. Itunes商店交易(應用內購買)
- 30. iTunes應用商店鏈接檢查器