Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში. აქ არავინ უნდა მოგთხოვოთ ტელეფონზე დარეკვა, შეტყობინების გაგზავნა ან პირადი მონაცემების გაზიარება. რამე საეჭვოს შემჩნევისას გთხოვთ გვაცნობოთ „დარღვევის მოხსენებით“.

ვრცლად

How to AppleScript closing current tab of front window?

  • 5 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 80 ნახვა
  • ბოლოს გამოეხმაურა jscher2000 - Support Volunteer

სხვა პარამეტრები

What is the AppleScript command to simply close the currently displayed tab of the front window?

What is the AppleScript command to simply close the currently displayed tab of the front window?

გადაწყვეტა შერჩეულია

I can't hold out high hopes: adding more AppleScript support has been on in the bug tracking system for 17+ years and doesn't seem to have any momentum. Probably your best bet for now is to find hacks other people have posted rather than waiting for a more complete API on Firefox's side.

პასუხის ნახვა სრულად 👍 0

ყველა პასუხი (5)

სხვა პარამეტრები

How does AppleScript work? Can it emulate keyboard action? The keyboard shortcut to close the current tab is Command+w (on Windows, it's Ctrl+w).

სხვა პარამეტრები

This works but it's not ideal:

tell application "Firefox" to activate tell application "System Events" to keystroke "w" using command down

A more complete AppleScript dictionary for Firefox would be the preferred solution.

სხვა პარამეტრები

GRobLewis said

A more complete AppleScript dictionary for Firefox would be the preferred solution.

Where would that come from?

სხვა პარამეტრები

AppleScript support is compiled into a Mac application.

სხვა პარამეტრები

შერჩეული გადაწყვეტა

I can't hold out high hopes: adding more AppleScript support has been on in the bug tracking system for 17+ years and doesn't seem to have any momentum. Probably your best bet for now is to find hacks other people have posted rather than waiting for a more complete API on Firefox's side.