Hey folks! I’m trying to create an AppleScript that opens a particular page in my Notion app on my Mac. I’ve attempted using Safari to do this, but it keeps asking for permission to open the app. Here’s what I tried:
tell application "Finder"
open location "notion://www.notion.so/My-Important-Page-123abc456def789"
end tell
This didn’t work as expected. Is there a way to bypass the permission prompt? Or maybe a different approach to launch Notion and go straight to the page I want? I’m open to any suggestions or alternative methods. Thanks in advance for your help!
Hey danwilson85, I’ve been down this road before and found a solution that works well for me. Instead of using Finder or Safari, try targeting the Notion app directly in your AppleScript. Here’s what I use:
tell application “Notion”
open location “notion://www.notion.so/My-Important-Page-123abc456def789”
end tell
This approach bypasses the browser entirely and opens the page right in the Notion app. Make sure you’ve got the latest version of Notion installed, as they’ve improved their URL handling recently.
One thing to watch out for: you might need to grant permissions in System Preferences > Security & Privacy > Privacy > Accessibility. Add Script Editor and Notion to the list of allowed apps.
If you’re still having trouble, consider creating an Automator workflow or using Alfred if you have it. Both can streamline the process even further. Good luck!
I’ve found a reliable way to open specific Notion pages using AppleScript. Here’s what works for me:
tell application “Notion”
open location “notion://www.notion.so/Your-Page-ID”
end tell
Replace ‘Your-Page-ID’ with the unique identifier from your page’s URL. This method bypasses the browser and opens the page directly in Notion.
One crucial step: grant necessary permissions in System Preferences > Security & Privacy > Privacy > Accessibility. Add both Script Editor and Notion to the allowed apps list.
If you’re still encountering issues, consider using Automator or Alfred for a more streamlined process. These tools can create quick shortcuts to run your script effortlessly.