打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
【Photoshop JS脚本】打开URL

1.打开URL

  1. OpenURL()
  2. function OpenURL() {
  3. try{
  4. var URL = new File(Folder.temp + "/baidu.html");
  5. URL.open("w");
  6. URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=http://www.baidu.com/"></HEAD></HTML>');
  7. URL.close();
  8. URL.execute();
  9. }catch(e){
  10. alert("Error, Can Not Open.");
  11. };
  12. }

2.打开URL_带跳转

  1. openURL("https://jq.qq.com/?_wv=1027&k=58GHjlH")
  2. function openURL(url) {
  3. var fname = "shortcut.url";
  4. var shortcut = new File('/' + fname);
  5. shortcut.open('w');
  6. shortcut.writeln('[InternetShortcut]');
  7. shortcut.writeln('URL=' + url);
  8. shortcut.writeln();
  9. shortcut.close();
  10. shortcut.execute();
  11. shortcut.remove();
  12. };

3.打开URL

system('start http://baidu.com')

4.打开URL

system ("explorer http://baidu.com")
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
前端跨域知识总结
最全的提交网站入口大全
iOS 内置URL schemes简介(2)
html5添加到安卓桌面图标,Android向桌面添加快捷方式,使其指向特定的网页
拳击教案
欢声笑不断【动物奇趣】
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服