-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am not getting URL from activeWin #99
Comments
You haven't provided any actionable info. |
Hi there, |
here is an example of when I log window object {
owner: {
path: '/Applications/Google Chrome.app',
bundleId: 'com.google.Chrome',
processId: 70077,
name: 'Google Chrome'
},
title: 'GitHub',
bounds: { y: 41, width: 1609, height: 956, x: 126 },
memoryUsage: 1232,
id: 8499,
platform: 'macos'
} |
I have a similar problem with at electron app. The app gets The app can get other properties in both cases. I've created reproduce sample app. Applescript behavior may be something different in each case. |
I have the exact same problem as @azu . Running the app from the command line mitigates the issue. Would be very interested in a fix or workaround. |
I have finally found the cause of this problem @azu To be able to ask the user for browser automation permissions, your application needs the To be able to set the entitlement, the app has to be signed. |
@tkainrad Do you know how/where to setup the entitlement & the key that you have mentioned above ? I am working on an electron-react project. I have my app code-signed with a Mac Dev Account certificate. Could you please help me with this ? |
Actually took me a while to figure it out. Hard to find any documentation on it. I had to look through open-source Electron apps to see how others do it. E.g. Sylk or Franz. I use Electron Builder. It offers corresponding configuration options to be set in "mac": {
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"extendInfo": {
"NSAppleEventsUsageDescription": "Please allow access to script browser applications to detect the current URL when triggering instant lookup."
}
}, This is my <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
</plist> I wish you success! |
I think this issue and #114 can probably be closed. A note in the |
This works perfectly. Thanks for your help @tkainrad |
has anyone got the url property? i dont seem to get it in the terminal. i have a windows OS and im working on nodejs. |
@yusuf-zafar as per the readme, the url property is available only on macOS and not Windows and Linux.
|
@shoaib30 thanks for replying. I figured out a way to fetch URL by making some changes in the npm module. The problem is that it highlights the URL when it reads it from the browser, I'm working on a desktop user-activity-tracking app. I need to make it so that it happens without getting the user's attention. |
Hello |
active-win url only get on production base on my mac laptop other laptop is not worKing how to resolve this issue |
Would you be willing to share the changes you made for windows? |
This problem is resolved but windows platform issue not getting url how is it possible please help me |
But not any solutions for windows platform |
get active window url solution for linux |
how to get the url in window operating system using this active-win... |
I am not getting URL from activeWin
The text was updated successfully, but these errors were encountered: