2012-07-19 34 views
0

在URL中創建隨機數,這可能是相當容易的經驗AppleScript的用戶,但我想知道如何在URL中隨機化一些,讓Safari瀏覽器,然後打開網址..使用AppleScript

所以對於例如.. http://example.com/something=(RANDOM NUMBER)&東西= ...

會很感激一些這方面的幫助..

非常感謝

回答

0

這裏有一個例子:

set randNum to random number from 1 to 20 
tell application "Safari" 
    open location "http://example.com/something=" & randNum & "something=..." 
end tell