[SeaMonkey]AppleScriptでURLを取得する
こんな感じで
URLを取得する方法が良いですね。
tell application "SeaMonkey"
activate
set windowProps to properties of front window as list
end tell
tell application "SeaMonkey"
activate
tell application "System Events"
keystroke "l" using {command down}
keystroke "c" using {command down}
end tell
set theURL to the clipboard
end tell
注意したいのが
SeaMonkeyのプロセス名が
『seamonkey-bin』になる事
tell application "SeaMonkey"
activate
set windowProps to properties of front window as list
end tell
-------------------------------ここから下がURL取得
tell application "SeaMonkey"
activate
tell application "System Events"
keystroke "l" using {command down}
keystroke "c" using {command down}
end tell
set theURL to the clipboard
end tell
----------------------ここから下がプロセス名
tell application "SeaMonkey"
activate
tell application "System Events"
set app_name to name of the first process whose frontmost is true
end tell
end tell
| 固定リンク
「AppleScript」カテゴリの記事
- 濁音 半濁音 置換用レコード(2023.08.21)
- [AppleScript]キーノートの書類サイズを指定して作成(2022.01.09)
- [awk]行頭のスペースを削除する(subで置き換え)(2021.11.16)
- [SpotLight]選択範囲でSpotLight検索(2021.11.03)
- [AppleScript]リソースフォーク(カスタムアイコン)削除(2021.10.12)






[RSS]