>>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
