【问题标题】:Creating random number within a URL with Applescript使用 Applescript 在 URL 中创建随机数
【发布时间】:2012-07-19 11:01:30
【问题描述】:

这对于有经验的 applescript 用户来说可能相当容易,但我想知道如何在 URL 中随机化一个数字并让 safari 然后打开该 URL..

例如..http://example.com/something=(RANDOMNUMBER)&something=...

非常感谢您对此的帮助..

非常感谢

【问题讨论】:

    标签: parsing url random numbers applescript


    【解决方案1】:

    这是一个例子:

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

    【讨论】:

      猜你喜欢
      • 2019-06-29
      • 2017-09-20
      • 2014-01-22
      • 2013-01-25
      • 1970-01-01
      • 1970-01-01
      • 2016-10-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多