5ちゃんねる⇒PC等⇒新・mac@5ch掲示板
設定
ダークモード
広告表示
画像・外部リンク

UPLIFT会員は外部リンクへ直接移動します。確認は初期設定でオンです。

機能のオン・オフ

このブラウザ・このサーバーのみ。オフにしても保存済みデータは残ります。

UPLIFT

itest版
494コメント212KB

【中の人】Automator【小人】3人目 [転載禁止]©5ch.io

垢版
>>436
元の >>434 だけど
> display dialog “-1”の所に例えば
の “-1” は “1” の誤りかな
んで「の所に」ってのは、置き換えで合ってる?
自分の所だと、想定通り(*)動いているような…?
* Firefoxウィンドウがある時だけリサイズ

tell application "System Events"
set p to every process whose name is "Firefox"
if p is {} then
display dialog "-1"
else
if (exists window 1 of process "Firefox") then
tell application "Firefox"
activate
make new document
tell front window
set bounds to {0, 25, 1000, 1000}
end tell
end tell
else
display dialog "0"
end if
end if
end tell

名前・メールを直接入力できます(保存されません)。