Questions tagged [applescript]

AppleScript is an end user scripting language that has been available in Mac computers since System 7 Pro (7.1.1). It allows for automation of system tasks, communication between processes, and creation of workflows, amongst other functions.

AppleScript is a inter-application scripting language, designed to control and exchange data between scriptable applications. Users can use AppleScript to combine the functionality of multiple scriptable Mac applications to form a new application to meet their special need or demand without "reinventing the wheel".

Resources

8740 questions
2
votes
1 answer

How to keep applescript running and redirecting urls?

I have this code I can keep running inside Script Editor. But it causes my laptops fans to scream! So I am not sure is this right way to do this? repeat until application "Google Chrome" is not running if application "Google Chrome" is running…
lehtu
  • 868
  • 1
  • 12
  • 27
2
votes
1 answer

Applescript waiting for a page to load

I have tried various solutions to poll for elementID before continuing on with the applescript execution. I prefer to poll rather than to have a arbitrary delay. set pageNotLoaded to true set doForThisID to do JavaScript…
stackQA
  • 309
  • 2
  • 13
2
votes
2 answers

AppleScript to read strings from ".txt" files to variables

I am trying to build an AppleScript that reads each line of a “.txt” file (with a linefeed) and stores the contents of each line into AppleScript variables. Here is what I mean: Let’s say there was a “Test.txt” file with the contents: Apples …
Tom Bettinger
  • 21
  • 1
  • 2
2
votes
2 answers

applescript to render nuke script in terminal

I want to be able to drop a Nuke script on to an Applescript application and then for the Nuke script to start rendering in a terminal. The script needs to get the file path of the dropped item, paste that in to a terminal window along with 'nuke…
2
votes
1 answer

Applescript: Notification centre alert with specific Icon

I understand that there is a very limited number of options to do with the Applescript notification alert call, but I am curious as to whether alerts can be called with icons or specified images to better identify them? I ask this as i have seen it…
user4493605
  • 391
  • 2
  • 18
2
votes
2 answers

Drop Folder on App: Sort Contents: Make MOV

Here's what I'm trying to accomplish: Item 1. Drop folder that contains multiple image sequences onto…
sbaden
  • 555
  • 3
  • 16
  • 30
2
votes
0 answers

In OS X is it possible to get the text of a dock icon's badge label with applescript?

OS X dock icon badge labels display numbers (only?). Is it possible to get the number of a specific badge label with applescript? e.g. the count of "Unread Messages" on the Skype dock icon? Any help would be appreciated Alex
Alex
  • 21
  • 1
2
votes
1 answer

Saving Contents of OSAScriptView as a ".scpt" file into a predefined folder

First, I'm totally new to Obj-C please go easy on me :D I'm building an application, which basically does the same thing that AppleScript Editor does. I have used an OSAScriptView, and what I would like to do is to save the contents of this…
johnozbay
  • 2,192
  • 1
  • 25
  • 28
2
votes
2 answers

Clicking a "div button" on a Safari web-page using AppleScript & Javascript

I have a problem somewhat related to a post that came up a few years ago. There was significant input to that post, as well as significant disagreement, and apparently no clear answer. So I thought I'd bring this up again but in the context of my…
paamachat
  • 53
  • 11
2
votes
2 answers

AppleScriptTask command not working in Excel 2016 for Mac VBA

I have an Excel file that makes heavy use of the MacScript command, which has been deprecated in Excel 2016. I attempted to use the new AppleScriptTask command as explained in this StackOverflow thread: The MacScript function is not working well in…
bishop3000
  • 21
  • 3
2
votes
1 answer

How to run a applescript (.scpt) programmatically in my OS X app?

I have a small applescript and I want to run it as soon as a button is pressed in my application, how do I get this done? I've made this OS X app in Objective-C.
Rakshith G B
  • 816
  • 2
  • 8
  • 24
2
votes
1 answer

applescript - copy paste sender's email address to numbers

is it possible that when a new email message is received to run applescript to copy sender’s email address to clipboard and paste it to next empty cell in column e in numbers, I've been trying with this, but it doesn't select the first…
2
votes
2 answers

Applescript to batch export with quicktime pro

I need to export over 50 mp4 files to three different formats using Quicktime Pro. Currently I open the mp4, select the export options, choose filename to "save as" and start the process. I do this three times (one for each format) for each…
John Muchow
  • 4,798
  • 8
  • 40
  • 40
2
votes
1 answer

Applescript Editor won't run program - syntax error?

Here's my script: on idle tell application "Finder" to open the startup disk return 100 end idle When I hit compile, it appears to compile. When I hit run, nothing happens. I've made several variants and I get get any to run.
Daniel Paczuski Bak
  • 3,720
  • 8
  • 32
  • 78
2
votes
2 answers

copy one picture and paste it on top of the other on terminal

In here I found a piece of code that finds and resizes all images within a folder with applescript Now I need to apply a stamp to those images one by one. I already have a transparent jpg prepared with the same size and ready to be pasted on all of…