macos – How do I run apple script on a particular instance of Firefox?

I have three instances of Firefox called –

  1. Firefox
  2. Firefox 2
  3. Firefox 3

They all live in the Applications folder and the difference is that they have different Firefox profiles and cookies.

I’d like to run an apple script that works on a particular instance of Firefox.

tell application "Firefox"
    activate
    tell application "System Events"
        keystroke "n" using {command down}
    end tell
end tell

tell application "Firefox"
    activate
    tell application "System Events"
        keystroke "l" using {command down}
        keystroke "a" using {command down}
        key code 51
        keystroke "https://google.com"
        key code 36
    end tell
end tell

If I run this with Firefox open then it works exactly how I want it to.

But, if Firefox is closed, but Firefox 2 or Firefox 3 are open then it has weird behavior.

It will replace the word Firefox with Firefox 2 or Firefox 3 (whichever is open and last active) and then it will run the script using that instance of Firefox which is not what I want.

macbook pro – Will developers be impacted by Apple laptops moving to ARM processors?

Stack Exchange Network


Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

My Apple Magic Keyboard on Windows says it’s connected, but doesn’t do anything

I’m using Boot Camp and trying to reuse my Apple Magic Keyboard. It works fine when connected via Lightning. But I can’t get it to work via Bluetooth.

The most infuriating thing is, Bluetooth says it’s connected. There’s no mistaking it, it says “Vanessa’s Keyboard” and then “Connected”. If I remove it, then pair it again, the pairing seems to work fine, and it again says “Connected”, but the keyboard keys don’t do anything. I pick a text box, type, and nothing happens. I press Caps Lock, hoping to see the light turn on, nothing happens.

Once, not sure how, I got it to type a little bit, and then got the Caps Lock light on. But it stopped working a few seconds later.

One possibility might be the sheer number of keyboards? I have:

  1. The laptop keyboard
  2. The Touch Bar, apparently counts separately
  3. This Magic Keyboard
  4. The Logitech Unifying Receiver (for my mouse)
  5. A Yubikey authentication device (when you touch it it spits out a token, then presses Enter)

I tried removing the external ones and rebooting, and there was no effect. So I don’t think that’s it.

Google hasn’t done me any good, there are a million identical articles for how to pair this keyboard in Windows. Nothing for when it says it’s connected but doesn’t do anything.

Specs

  • Machine: MacBook Pro 15-inch 2017
  • OS: Windows 10 Pro, version 2004
  • Other OSes: Catalina (personal partition), Mojave (work partition)
  • Keyboard: Apple Magic Keyboard model A1843

vpn – ios/mobileconfig ikev2 ondemand via apple configurator 2

I am trying to use Apple Configurator 2 downloaded from AppStore, and Icannot find ondemand settings in the vpn section. Please help. I can manually add ondemand section to my plist and it works. If I open this plist, Apple Configurator does not remove this section, so I assume it knows and recognizes it.

The settings are as simple as that:

<key>OnDemandEnabled</key>
<integer>1</integer>
<key>OnDemandRules</key>
<array>
    <dict>
        <key>Action</key>
        <string>Disconnect</string>
        <key>InterfaceTypeMatch</key>
        <string>WiFi</string>
        <key>SSIDMatch</key>
        <array>
            <string>myWifi</string>
        </array>
    </dict>
    <dict>
        <key>Action</key>
        <string>Ignore</string>
    </dict>
</array>

But I cannot find it in the Apple Configurator 2! Here’s the same file opened in the AC2:
enter image description here

Please tell me, how to configure it using AC2?

In automator, apple claims you can create a dialog with a progress bar. Is this feasible or outdated?

Stack Exchange Network


Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Apple T2 chip endorsement key

Does Apple’s T2 chip have an endorsement key (or equivalent mechanism) to prove that another T2 key can only be used inside the secure enclave? We are looking for something like what a TPM provides so that a remote system can be assured that the key in use is secured by the T2 chip.

Is texting required for Apple Watch fall detection?

The Apple Watch Series 4 and above fall detection function transmits your location after a fall. Is this information sent as a text? If I have a talk-only phone plan without texting, for example, would the location still be transmitted as part of the emergency call?

iphone – Apple Watch deletes all songs from its internal store after iOS sync

I have an iTunes playlist with 150 songs set to sync with Apple Watch. I sleep, let the Watch on its charger, then by morning I have all 150 songs on it working fine. I can confirm this by going into the Watch app then General > About. However, whenever I sync my iTunes with my iPhone, all songs are automatically deleted from the Apple Watch, even if the playlist is still the same (on the iPhone nothing happens, everything is still fine). Then the songs will only be synced again when I put it back on the charger.

Anyone knows why it might be happening?

Thank you!

Info:

Apple Watch Series 3 – WatchOS 6.2.6

iPhone 7 128 GB – iOS 13.5

Ho to activate Apple ID on iTunes Store via Web?

I want to publish a podcast show on Apple Podcast. Apple requires an Apple ID that is activated on the iTunes Store for this process.

I am running Linux on my computers and Android on mobile devices. I don’t have any Apple device at all. Nor do I have access to a Windows PC running iTunes for Windows.

Now, how can I activate my Apple ID on iTunes? Is there an iTunes web frontend available? Can the iTunes Store be accessed without Apple OSes or Windows at all?