Questions tagged [javascript]
The javascript tag has no summary.
135 questions
0
votes
0
answers
106
views
What URL do I use to connect to a public calendar on iCloud?
I have a complex schedule I want to share on a web page of a site I host. I have the calendar in the Calendar app shared as a public calendar. I want to use JavaScript to fetch the .ics file, which I ...
3
votes
1
answer
1k
views
Why am I getting “Unable to Run JavaScript on Web Page” in Apple Shortcuts, even though my script works?
I am trying the “Run JavaScript on Web Page” action in Apple Shortcuts with this simple script:
alert("test");
completion(result);
The alert fires and shows a message. However, I keep ...
0
votes
0
answers
826
views
Unresponsive website buttons on different Macs
There are buttons on some internal websites (can't provide an explicit link). Clicking most of them just gives no response at all in any browser (Firefox, Chrome, Safari, Edge) on all my different ...
1
vote
0
answers
255
views
Definitive way to enable ESC-key-like functionality for Obsidian on iPhone
Has anyone provided a good solution to the lack of an escape key on iPhone yet, for vim mode? I feel like this needs a definitive solution, and I’d be willing to work on it if nobody has, yet.
Not an ...
0
votes
1
answer
116
views
How do I get Ajax data in JavaScript for Automation?
I’m trying to write a simple script which reads one line of text from a remote server. The URL is something like:
https://ajax.internotes.net/password/?password=Test@321
This returns a simple has of a ...
0
votes
1
answer
590
views
How can i open multiple instance of electron application in MAC OS? [duplicate]
i have an electron node application which i can open multiple instances in windows but not in MAC OS , how can i achieve the same functionality in mac also ?
1
vote
0
answers
590
views
Is there a method to have all links from a Chromium PWA application open in my default browser, Safari?
Problem Statement
On macOS, Is there a way to open all links from a Chromium PWA application in my default browser, Safari? Any advice or workarounds would be greatly appreciated.
Scenario
Open Bing ...
5
votes
2
answers
5k
views
Make shortcut to enable/disable JavaScript with Safari 17.0
Safari 16.xx had an option Disable JavaScript in menu bar>Developers. I had a shortcut to simply enable/disable JavaScript with an easy shortcut.
With Safari 17 Apple redesigned the developers ...
0
votes
1
answer
165
views
Since Spring, various websites have stopped working properly (on Safari and Opera) on my iPhone 8 running iOS 12
Since Spring, various websites have stopped working properly (on Safari and Opera) on my iPhone 8 running iOS 12. No problems on Android or MacOS.
I suspect JavaScript (grey buttons don't go red when ...
2
votes
0
answers
764
views
Capabilities of JavaScript in iOS Shortcuts
According to this:
https://support.apple.com/en-eg/guide/shortcuts/apd218e2187d/ios
And this:
https://developer.apple.com/documentation/javascriptcore
And this:
https://medium.com/@chrishutchinson/...
3
votes
1
answer
178
views
Automator - Cyrillic symbols and file writing
I was quite surprised the fact that Apple Automator can make backups for my notes. So I wrote a small script for that. But there are two unsolved issues.
In for each files are creating but there are ...
3
votes
1
answer
5k
views
How can I create a shortcut to toggle javascript on/off in mobile Safari on my iPhone?
How can I create a shortcut to quickly toggle JavaScript off/on on my iPhone?
I prefer to read the news with JavaScript disabled and then other websites, which typically require it to work, with it ...
1
vote
1
answer
118
views
What causes the "file" command to report a JavaScript file as "HTML document text"?
I downloaded a JavaScript document, but it fails to load in my webpage, stating that the mimetype of "" is not acceptable. When I use the file(1) command on the JavaScript file, it tells me ...
0
votes
1
answer
215
views
How to iterate over an Photos.app album (or a container) using Javascript?
How can I iterate over the media items of an album in Photos.app?
By copying and editing online code, I got this far:
for (const album of Application("Photos").albums()) {
console.log(&...
2
votes
2
answers
805
views
What is the javascript equivalent of the applescript run command?
I want to create a script for opening an app in nonstandard location quickly. With AppleScript, the app can be started with:
tell application [app path] to run
I want to do the same using javascript ...