AppleScript is a proprietary programming language in Mac OS X to control and exchange data with applications.
0
votes
0answers
15 views
How to iterate over visible mail messages in display order?
I have several IMAP/SMTP email accounts set up in Mail.app. Each of these has a folder called 'Action'. I have an Applescript (see below) which moves the currently selected message(s) to each one's ...
2
votes
2answers
26 views
How can I stream audio to multiple computers at the same time?
I'm trying to stream music to different computer's speakers simultaneously. Currently I'm doing this by physically timing the start of the song on each computer.
Are there any built in utilities or ...
0
votes
0answers
37 views
AppleScript works fine in 10.8 but not in 10.7
I have a simple AppleScript that works perfectly on two ML machines (10.8.3), but when I try to run it on a 10.7.5 machine it doesn't work. To make matters more confusing, in 10.7.5 it runs in the ...
0
votes
0answers
12 views
Folder Actions for folders inside main folder [duplicate]
In Mac OS X, you can program Folder Actions, which basically are scripts that run when something is added to a folder.
I was wondering if I can have a Folder Actions programmed for a main, big ...
0
votes
1answer
15 views
In applescript how do i get two different things to repeat at the same time
I am trying to get two different actions to repeat at different intervals but right now only the first action will repeat.
repeat
keystroke "i"
delay 44
end repeat
repeat
...
1
vote
0answers
10 views
Ruby and osx, clipboard status detection
My question: is it possible to detect when clipboard was pasted into other app ?
With use of RubyMotion, Macruby, or Apple Scripts maybe ?
0
votes
0answers
13 views
Any way to add Lion full-screen feature for TaskPaper by AppleScript?
I am using TaskPaper and, unlike most Mountain Lion apps, it appears that there is no way to make it go full screen. Would it be possible to use an AppleScript to make it go full screen in the same ...
0
votes
2answers
53 views
Can AppleScript automatically press a key for me in an application?
I'm trying to devices an AppleScript that will automatically press the right arrow key for 1 second, then the left arrow key for 1 second and repeat this in an endless loop until I interrupt it.
Here ...
0
votes
0answers
36 views
Need help with Applescript and clicking menu bar item
I'm trying to make an applescript for F.lux that clicks the menu item "Disable for an Hour" as indicated in screenshot one. The element path is indicated in screenshot two.
Here is my code thus far:
...
0
votes
2answers
43 views
Compress files with the output name same as Parent Folder with Automator
I've been searching the internet for a solution to this. I would like to create an Automator workflow that will zip the selected files, name the zip the name of the Parent directory and save that zip ...
0
votes
1answer
33 views
how to auto download a certain attachment in mail
I have looked on stack exchange and other sites for a simple applescript. I have found more complex scripts that it's hard for me to understand (not knowing a lot about the applescript syntax). So, ...
0
votes
0answers
12 views
How to set size of Adobe Fireworks with AppleScript?
How to set size of Adobe Fireworks CS6 by AppleScript? It is possible to set position but size is possible only to read and bounds Fireworks doesn't support at all.
Next code doesn't work:
tell ...
-1
votes
1answer
25 views
Can Applescript ask for the names of the people you want to send to and fill this in send to
I’d like to be able to send to people from my address book where a dialogue would say who would you like to send the email to and I would write in like peter, john, George etc and that would populate ...
0
votes
2answers
44 views
Need Help with an Applescript / plist
This has been a learning experience for me. Everything checks out logically to me in this script/ plist but something isn't correct. Everything runs, but then the script runs every minute which is ...
0
votes
2answers
52 views
Writing an e-Mail app in applescript
I'm using a webmail account(NOT Gmail: hate its interface), and I DON'T want to use the mac's Mail app(must maintain double contacts lists for one thing).
I use Google Chrome and have set the ...
0
votes
4answers
45 views
How do I generate a random even number with Applescript?
I'm trying to create an Applescript that will change the MAC address of my router automatically. Some fields need to be even numbers but I can't figure out how to generate even numbers only. Heres ...
0
votes
2answers
22 views
Running Applescript using cron jobs not working
I'm new to conjobs and applescript but I have the script done correctly i believe. (any critique is welcome) I don't want to bloat my calendar with events to do this because I use my calendar for ...
0
votes
0answers
21 views
AppleScript Works in Script Editor, but not when run from FileMaker
When I run this from Script Editor, it runs perfectly fine, albeit slow, but when run via FileMaker Pro 6, it does nothing at all. In fact, even when I enclose it in a try block, it doesn't even ...
0
votes
0answers
12 views
Applecript - sending Sparow email with “matched” attachement
I want to make some rules to permanently unclutter my Mac with Hazel help.
I find a helful blogpost about using AppleScript with Sparrow but I'm not so good at coding to know how use this knowledge ...
3
votes
1answer
52 views
Are there more robust tools than Automator to extract text from multiple PDF?
There is an action in Automator that allows you to programmatically "Extract PDF Text", but it fails when fed a moderate amount of files (25 to 100). Worse, it fails without logging anything helpful ...
0
votes
0answers
19 views
FileMaker 6 and AppleScript: Deleting a Menu Item
I am trying to write an AppleScript to delete or at least disable certain menu items in FileMaker pro 6. My documentation indicates that it can be done, yet even the exact examples that they give, do ...
1
vote
0answers
39 views
Can I find and replace Core Text/Cocoa text strings in any application?
My scenario:
I use an app called Antetype for UI design.
Antetype uses OS X-native technologies for text rendering (it uses the system-standard text palette).
Antetype does not have a find and ...
2
votes
3answers
104 views
look up a word in Dictionary.app in Terminal
Is there a bash or applescript to look up a word in /Applications/Dictionary.app from a Terminal window ?
open -a /Applications/Dictionary.app/ --args word
ignores --args, says "type a word to look ...
0
votes
1answer
19 views
Is it possible to show custom icons in the Scripts menu?
You know that "scripts" menu you can show in the right side of the menu bar? It's very useful. I'm talking about this menu:
I've set some custom icons for the files in the scripts folder using the ...
1
vote
0answers
81 views
Can a new mail be sent using AppleScript + Outlook + IMAP?
I'm trying to use apple script to automate creation of a new outlook mail message.
The below code will work when I have my email account sent up as pop3 but I need it to work with an IMAP account.
...
0
votes
1answer
36 views
Swap Mouse Button using AppleScript
I use mouse with left-hand. My system is shared with other people who are right handed. So, I need frequently to switch mouse button.
I would like to know how to swap mouse button using AppleScript? ...
0
votes
1answer
21 views
Set environment variable for the process before startup [duplicate]
I have the following situation: I have Mac OS bundle with application which uses some 3rd party dylib's and those dylib's depend on some env variable, let's name it ENV_VAR. I want to set ENV_VAR to ...
1
vote
0answers
29 views
Touching files in correct order
This code touches files in alphabetical order.
I need to touch files in order it is in list_of_files, so first it touches file2, then file3, then file1).
Is there any other way to do this than to ...
1
vote
1answer
54 views
Source code to string in variable
In AppleScript Editor i can see that source_code has script content but row 2 fails for some reason.
set source_code to load script (POSIX file "/path/to/script.scpt")
word 2 of source_code
This ...
3
votes
1answer
69 views
“@” symbol in password in applescript
I am using an applescript to mount a users home folder. However, when I use a password with a "@" symbol the script fails since the "@" symbol is also the separator between the password and ...
0
votes
0answers
19 views
Eject Disk Image at logout with AppleScipt?
I would like to know how to use AppleScript to write a script that automatically ejects a disk image whenever the user logs out of their account.
This script would be the complementary inverse to a ...
-1
votes
1answer
21 views
Creating preview and icon for screenshots [closed]
I would like to make this code to automatically create preview and icon so it looks nice in Finder and so i don't have to wait my graphics app to create these things when i first time open in browse ...
0
votes
0answers
15 views
Is there a way to omit certain directories from where Mac OSX finds applications for its Applescript dictionaries et al?
Mac OSX maintains a list of applications for Applescript dictionaries, for the open-with list in finder etc.
This list gets collected from local directories (e.g. /Applications) but it finds as well ...
2
votes
2answers
81 views
Applescript to run when iPhone connects/disconnects
I'm trying to figure out how to run an applescript when I connect and disconnect my iPhone with the USB cable.
So far, I think I can run an applescript when it connects by using Image Capture ...
3
votes
1answer
58 views
Is there a maximum length of metadata that can be written in one xattr command?
Is there any text length limitations for how long text can be put to xattr? I plan to put my AppleScripts source code to script files so Spotlight can find it. Using Finder Comments isn't an option ...
1
vote
2answers
43 views
Using mdfind to evaluate the text content of a specified file?
I would like write an applescript to evaluate whether a particular file contains a specified string (perhaps as part of an if... then statement). I want to invoke a shell command using mdfind to do ...
1
vote
1answer
34 views
How to get inode from alias file?
In this MacWorld forum thread aliases are described as
Aliases can reference an object in the file system either by a
persistent ID or by path. Generally they will contain both
pieces of ...
2
votes
1answer
174 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
68 views
How to get color of pixel in coordinates 123, 456 in screen?
My AppleScript app needs to get color of pixel in coordinates 123, 456 in screen.
0
votes
0answers
24 views
How can I open a specific note in notes.app with applescript?
I can create and move notes in notes.app with applescript quite easily. However, given a specific note (i.e. the note's id), how can I tell notes.app to open it?
0
votes
0answers
55 views
How to pick out a DEVONTHINK record or group within the current group using Applescript
DEVONthink Pro Office comes with a scripts library, and I am trying to create something similar to a script in that library entitled "Group With Duplicates.scpt" That script takes selected records ...
3
votes
1answer
74 views
How do I use screencapture for capturing floating windows?
I am trying to automate the periodic capture of a floating window. Specifically, of the floating 'Current Call' window which is used by Skype when the main window is off-screen.
By googling, I found ...
0
votes
1answer
40 views
How do i automatically send ebooks to my Kindle?
I would like to create an automation, that automatically sends a new file to my kindle email address if i put a new ebook into that folder.
How would a script look like, that i would have to apply to ...
6
votes
3answers
147 views
How to add folder to Spotlight “do not index”?
Is there any way to programmatically add a folder to Spotlight's "Privacy" tab?
Either through Terminal or Applescript?
Often I want to click on an item in Spotlight results in Finder, and have that ...
0
votes
0answers
37 views
Right Click does not bring up Services every once in a while. Why?
I have a Mac OSX 10.7.5 (Lion), and every once in a while when I right click on a folder or file to pull up a Service, sometimes the Service field disappears. I am not sure if I have a virus or ...
0
votes
0answers
20 views
Finder droplet description when cursor over icon
After Dragging a droplet onto Finder's toolbar, hover description is its path.
Is there any way to customize this description?
0
votes
2answers
53 views
Thread count of process x?
My AppleScript needs to get thread count of process x.
I have tried many ps etc codes but all these are not working for some reason.
I tried these:
do shell script "ps uH p 301 | wc -l" -->" ...
0
votes
2answers
45 views
What is the maximum amount of file arguments I can pass to a command?
If I do this in OS X, what is the maximum amount of files I can test?
Or is there a maximum length for this string?
do shell script "md5 -q 'path/to/file1.txt' 'path/to/file2.txt'"
3
votes
2answers
68 views
Have Voiceover read out just paragraph or sentence under cursor
I work with a disabled user who controls their iMac using keyboard and mouse input from their communication-aid. They have dyslexia and would like to use voiceover to read certain paragraphs or ...
1
vote
1answer
94 views
Shortcut to eject all external hard drives but not MobileBackups
So far I've been using the following AppleScript to eject all external drives at once conveniently using a shortcut:
tell application "Finder"
eject (every disk)
end tell
This script is is ...


