The tag has no usage guidance.

learn more… | top users | synonyms

-4
votes
1answer
41 views

Write an AppleScript to combine multiple pdf pages in one pdf

I am designing a workflow in which multiple one page-long PDF files should be combined into a single PDF file using Folder Action Script. If you have any script for that please share.
0
votes
0answers
54 views

Apple's policy on hybrid apps: >60% of native code

So one of our consultors recently told us that Apple rejected their hybrid app because "It has to contain at least 60% of native code", which of course is hard to accomplish if you decided to go ...
0
votes
1answer
17 views

How can I add a property to the window object in Chrome using Applescript?

In Chrome's JavaScript Console, I can type the following: window.myVar = "myValue"; I can then access myVar from the window context, where it returns "myValue". Excellent. However, if I do the ...
1
vote
1answer
40 views
0
votes
0answers
40 views

allow extensions to access files with Disable Local File Restrictions checked

I found this nifty feature, that I think will allow my self made extension to access files on my filesystem. From apple docs https://support.apple.com/kb/PH21491?viewlocale=en_AE&locale=en_AE: ...
2
votes
1answer
69 views

How to access environment variables in Javascript for Automation on OS X?

I am using JavaScript for Automation in an Alfred workflow. I want to access the various environment variables that Alfred sets up. How do I access the environment variable like alfred_version?
1
vote
0answers
18 views

Can I create a Range in numbers

I am using Javascript for Automation (JXA) with Numbers.app and I am wondering if I can instantiate a Range object, i.e. define which rows are concerned by the Range so that I can apply a function ...
0
votes
0answers
46 views

Editing site specific cookies in Safari extension

What I am trying to do is have an extension that can modify a cookies value for specific sites. I've gone through the Safari Developer page and library but I cannot find aside from blocking a cookie. ...
6
votes
3answers
2k views

WhatsApp Web in Fluid throws JavaScript exception

When I'm starting the WhatsApp web client in a Fluid app, this JavaScript exception is thrown: [Error] TypeError: undefined is not an object (evaluating 'e.getDatabaseNames') U (...
0
votes
0answers
146 views

Safari 9.0.3: Stalled with JavaScript enabled. Works fine with JavaScript disabled.

On one of my Macs (OS X 10.11.3), Safari 9.0.3 is unusable if JavaScript is activated: Google Search results are not clickable, and Safari presents you a virtually forever spinning beachball no matter ...
0
votes
0answers
18 views

Iphone keyboard emulator moves entire screen

I am making a website: https://synodins.com/maps/?&lang=1 When I run it on the Iphone, it works fine except that when i click 'offer ride', and then draw a line and when the ride info appears, ...
0
votes
1answer
51 views

Is there a shortcut or way to use code, to do anything at all with the item currently highlighted by Command+F?

Title pretty much says it all. Also if anyone knows how to drag and drop something into a browser using any language or command(s), please share. To be clear i'm talking about something like this: ...
0
votes
0answers
34 views

Create a Mac Service to send an item to Pocket Read later service

I am trying to create a right-click Service on Mac (using Automator) that will take a URL and add it to Pocket. I am using the official Pocket Bookmarklet javascript code as a starting point ...
4
votes
1answer
610 views

I can't uninstall Homebrew. How can I find and remove all of my Homebrew files and re-install it again?

I've deleted a main Homebrew file and now I can't un-install Homebrew. I want to un-install it and then do a fresh install. This is what I'm getting in the Terminal... host:~ user$ ruby -e "$(...
0
votes
0answers
195 views

Strange behaviour of window.location in safari (in Tampermonkey script)

I recently did a clean install of El Captian & added Tampermonkey into my safari. Youtube had evolved a lot since its inception and, personally, I found the homepage had become quite shitty so I ...
0
votes
1answer
25 views

Podcast sounds to iTunes [closed]

I need to upload our sounds to iTunes using rss feed.Created rss feed,i don't know how can work this with iTunes. Thanks in advance.
0
votes
1answer
229 views

How to activate and run JavaScript in AppleScript?

I'm trying to run simple script in AppleScript Editor on OS X 10.9.5, but using JavaScript, e.g.: var SE = new Application("System Events"); SE.processes.windows.name() However my dropdown only ...
5
votes
1answer
1k views

What's the equivalent of “do shell script” with javascript automations? (Yosemite)

Support for javascript automations started with Yosemite. How could I run using javascript an external command? (i.e. the equivalent of do shell script of applescript?
0
votes
2answers
468 views

How to print result of some javascript execution in ScriptEditor?

I want to test a piece of a very simple javascript and print out the result. The Script Editor however only prints out undefined in the Result pane. What is the easiest way to print out the result?
1
vote
0answers
145 views

I need to batch move files from one location to another, and put them in pre-existing folders with the same first 7 characters

I am looking to automate moving large amounts of files. Basically I have one location on our network full of .zip files. They are all named like "12-3456.zip" etc. I need to move each of these .zip ...
1
vote
1answer
534 views

How do I extract the contents of a specified text field within a webpage using applescript?

How can I use Applescript And Safari to extract the answer from this site: http://www.wolframalpha.com/input/?i=whats+the+meaning+to+life%3F I'm attempting to extract the answer in copyable ...
1
vote
0answers
134 views

How do I assign / unassign tags to Evernote notes using Javascript for Automation?

I'm creating a Script for turning Evernote Notes into Omnifocus-Items, using Javascript for Automation. Currently, the script searches for items with a certain tag, which works great. Now, I want to ...
0
votes
0answers
268 views

Selecting text in textarea form

I am running on an iPad Air 2 with iOS 8.3. I do some JavaScript coding on it from time to time, and one of the things that I do with it is when ready to release, I pack it several times so no one can ...
1
vote
1answer
143 views

How do I “say . . . using” in Javascript for Automation?

In Applescript, I can specify the voice the system uses to speak text as follows: say "Hello" using "Alex" In Javascript, I can do something similar: var ScriptEditor = Application("Script Editor")...
0
votes
0answers
31 views

Can I get rid of these timestamps in terminal?

I'm getting Javascript output in my terminal and it currently looks like this: Is there a way to get rid of the timestamps at the beginning of each line? I'm not sure if this is something I somehow ...
0
votes
3answers
321 views

Can I set the primary Language of OS X by using shell script or AppleScript?

My computer is mac mini (late 2012) with Yosemite 10.10.1 installed. The primary language of the system is English, with Chinese being the second language. Sometimes I need to use the Maps.app, and ...
1
vote
0answers
196 views

How to execute javascript from an applescript (Yosemite)?

Since Yosemite, the Script Editor allows using javascript. What is the best way to execute javascript from an applescript? My use case is an existing applescript which needs to send some parameters ...
2
votes
2answers
2k views

Why doesn't mobile Safari have a JavaScript console?

My question is fairly simple, seeing as iPod has full support for executing JavaScript (proven my bookmarklets (See below) why doesn't it have a "dev tools" option, or at least a JS console? Is there ...
0
votes
1answer
420 views

Click on a button (that is not a button ?) with Applescript or Javascript

Okay, relative newbie here, but I have searched all the answers and tried most of the suggestions and cannot find a way to automate using Applescript or Javascript within Applescript to click a button ...
1
vote
1answer
299 views

How do I block a specific JS file on Safari?

I have tried adding the full URL to the JS file on Adblock Filter, but it still loads. Is there anyway that I can block specific JS files? (Or any files, really). I know how to block hosts, but not ...
6
votes
1answer
714 views

Can I use Javascript to write a custom function for Numbers?

It's always annoyed me that I can't write a custom function for Numbers. It would make the spreadsheet so much more useful to me. In Google Apps spreadsheets you can do it, using Javascript. In ...
1
vote
1answer
865 views

OS X Yosemite suspends inactive windows

I have some user script that runs every about 10 minutes on specific page at opened tab in Safari 8. The surprise is that safari somehow suspend javascript execution when tab is not active by user ...
0
votes
1answer
1k views

How to trigger Notification Centre notification from JavaScript? [closed]

The other question asks the same but using AppleScript. Apple introduced JavaScript as a new language for Automation in OS X 10.10.
0
votes
1answer
936 views

Examples of 3D Javascript of CSS3 animations in-browser on iOS?

Are there any examples of 3D animations rendering in mobile Safari? To date, nearly all of the 3D animations I've seen working on a PC don't seem to render correctly on iOS. (Why is that?) I was ...
1
vote
1answer
380 views

Is there a way to make have Safari run some javascript load after each loaded page?

I want to configure Safari to run a piece of javascript after each page I visit. The same peace of js should be run after any web page I visit is loaded. How can I configure Safari for this?
2
votes
1answer
221 views

Disable App Nap via Javascript/HTML

Is there a message that could be sent in a way that at least Safari, if not other browsers, understands that tells Mavericks not to engage App Nap? I have an HTML5 pseudo-MIDI rendering app (i.e., ...
6
votes
2answers
81k views

How do I open the javascript console in Safari 6?

I just got a new Mac and it comes with Safari 6 installed. I've opened up the Safari 6 web inspector tools and now I can't find some of the tools I used before in Safari 5. In Safari 5 you can press ...
10
votes
2answers
657 views

Possible to disable custom Javascript keybindings in Safari?

I have a couple of decades experience using Emacs, so the Emacs-like keybindings for text editing on Mac OS X are very nice. Unfortunately, some websites (ahem) choose to override these with ...
1
vote
2answers
9k views

Using Javascript | Applescript to click button in Safari

I realize there are several threads about this and they are all very specific to certain website . My background is in Python, not Javascript or Applescript, and I'm confused on exactly how to achieve ...
3
votes
1answer
160 views

Capturing text with a bookmarklet in IOS7

Is it possible to capture text from Safari using a bookmarklet on an iPod Touch/iPhone when running iOS7? In iOS6 I could select text, and then open a bookmarklet (like this one for example) which ...
1
vote
0answers
868 views

Why does OS X Mavericks freeze while typing comments on StackExchange Pages in Safari?

For a couple of days i am using OS X Mavericks and Safari for browsing. Sometimes while writing questions or comments on StackExchange pages, the computer freezes, and on the screen appear suddenly ...
0
votes
1answer
147 views

JavaScript problem while installing NetBeans and JDK in OS X 10.5.8 - Leopard

I downloaded the newest version of NetBeans and JDK and wanted to install it on my MacBook that runs on OS X 10.5.8 but I couldn't. This is the screenshot I made : Maybe since the this OS X version ...
14
votes
1answer
246 views

Can I ensure keyboard commands don't get trapped by browser scripts?

Is it possible to tweak Safari to ensure command key combinations like ⌘H or ⌘L go to Safari as opposed to Safari's window contents? This comes up for me most often on this site because the editor ...
0
votes
1answer
796 views

Apple Discussions website not responding to clicks?

This is ironic, Apple's Discussions website is not working properly in the latest version of Safari (6.0.3) or Chrome (25). Any link or button that I click on the page does not work. Is this ...
1
vote
0answers
199 views

Does the javascript debugger in Safari have the ability to de-minify javascript like chrome does?

In the Chrome debugger under the "Sources" tab, there is a little "{}" button at the bottom that will de-minify minified code and make it human readable, as well as allow the developer to set ...
2
votes
1answer
2k views

Automatically forward “Starred in Gmail” messages to OmniFocus

Summary: I would like to create some sort of an automated process where any messages that I 'star' in Gmail (aka 'flag' when using Gmail via IMAP) will automatically be added to OmniFocus, and then "...
1
vote
1answer
401 views

Is there an app to convert a video to HTML / JS / JSON?

Apple's site does some neat tricks on their pages to display videos encoded as a JPG file and then decoded and rendered in a canvas element (see http://www.tuaw.com/2012/10/16/how-apples-iphone-5-...
1
vote
2answers
287 views

Are my frequent Safari beach balls caused by my extensions?

Every 2-10 minutes Safari pauses with a spinning beach ball for roughly 10-90 seconds, sometimes asking if I want to reload everything, making Safari almost unusable. I've installed several safari ...
0
votes
1answer
652 views

Retina dsiplay support on Intellj Idea for Java /JavaScript development

I have seen this question on retina display issues while working with Eclipse on Macbook . I have a latest personal Intellij Idea License and would like to know your views of retina display support ...
1
vote
2answers
1k views

How can I automatically run an AppleScript on shutdown or logout?

I am more used to the Javascript style event handlers, but is there a similar thing in applescript that listens to system events like logout or shutdown to execute code or is there a way to have an ...