Questions tagged [sourceforge-appscript]

DO NOT USE for Google Apps Script or Apple Script. Use only for Source Forge appscripts, the high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications from Python, Ruby and Objective-C. Appscript makes these languages serious alternatives to Apple's own AppleScript language for automating your Mac.

Appscript is a high-level, user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications from Python, Ruby and Objective-C. Appscript makes these languages serious alternatives to Apple's own AppleScript language for automating your Mac.

Please note that appscript is no longer developed or supported, and its use is not recommended for new projects. If you're interested

Related

External link:

98 questions
6
votes
4 answers

Ionic Serve throws a Type-Error: Appscripts.serve

I recently cloned a project and when I tried to serve it, I got an error:TypeError: AppScripts.serve is not a function. How would I go about fixing this issue/where should I look? I have already tried updating ionic, and reinstalling all…
5
votes
1 answer

How to hide the automator application icon when running

I create a automator application and set it to run at logon, and I check the "Hide" box, but it still shows up (the gear icon) in the status bar. How can I hide it? I check the "Hide" box here: but the gear icon is still shown (the worse part is…
xslittlegrass
  • 4,826
  • 4
  • 26
  • 32
3
votes
1 answer

Ruby way of handling shell command that evokes a MacOS securityd window

I have a simple problem that I'd like to see if people here can help me with. Currently, I'm writing some test automation to handle a simple in house command line tool that dumps the contents of a smartcard. In the process of dumping this…
HM Stanley
  • 145
  • 4
  • 14
3
votes
2 answers

AppleScript from Java on Mac OS X 10.6?

To call AppleScript from Python, I use the "appscript" bridge: http://appscript.sourceforge.net/ What can I use to call AppleScript from Java on Mac OS X 10.6+?
Maroloccio
  • 1,143
  • 2
  • 12
  • 22
3
votes
1 answer

Save web page source from safari using python of an already open safari tab?

Basically I have installed an auto page refresher on safari. And I have 5 Safari windows auto refreshing every 30 sec. My goal is to use python to get a list of all the open web pages. I am using this to do it: import appscript urls =…
achillez16
  • 31
  • 3
3
votes
1 answer

py2app error:is a directory

When i execute the following command in terminal: python setup.py py2app it ends with : byte-compiling /Users/gebruiker/Documents/build/bdist.macosx-10.6-universal/python2.6- semi_standalone/app/temp/aem/ae.py to aem/ae.pyc error: Is a…
Lenlux
  • 41
  • 5
2
votes
4 answers

After successfully launching activity on physical device, application stops instatnly. NetworkOnMainThreadException

This is my entire code from an android project Translator.java: import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; import…
2
votes
2 answers

appscript on OSX 10.6.3 / Python 2.6.1

I am having some trouble getting appscript installed on OS/X 10.6.3 / Python 2.6.1. When I issue sudo easy_install appscript I get "unable to execute gcc-4.2: No such file or directory". Even when I do export CC=/Developer/usr/bin/gcc-4.2 (a valid…
jldupont
  • 93,734
  • 56
  • 203
  • 318
2
votes
1 answer

How to access the current table in Numbers?

How do I access the current table in Numbers using py-appscript? For posterity, the program I created using this information clears all the cells of the current table and returns the selection to cell A1. I turned it into a Service using a python…
Chris Redford
  • 16,982
  • 21
  • 89
  • 109
2
votes
1 answer

rb-appscript stopped working with Ruby 2.0.0 - patch ideas to make it work again?

I know that rb-appscript is officially no longer supported. However, I tried and found that rewriting existing libraries to use alternative methods (e.g. osascript) was a non-trivial work and it occurred to me that monkey-patching rb-appscript to…
kenn
  • 3,303
  • 2
  • 29
  • 42
1
vote
1 answer

error: installing appscript

i am having some trouble getting appscript downloaded for python 2.7. when i try to run the easy install im geting a No such file or directory error. Anyone have anyideas on what im doing wrong? $ sudo easy_install appscript Searching for…
Jon Crawley
  • 81
  • 1
  • 2
  • 7
1
vote
0 answers

Is it possible to reduce the startup time of MacRuby scripts which use the ScriptingBridge?

I would like to use MacRuby with ScriptingBridge instead of AppleScript to control Mac applications which support AppleScript. I used to do this using appscript, which is effectively deprecated, hence the move the MacRuby and scripting bridge. The…
mattbh
  • 5,230
  • 2
  • 27
  • 27
1
vote
1 answer

"OSERROR -10000 Apple event handler failed" when trying to change desktop wallpaper on Mac

I have written the following really simple python script to change the desktop wallpaper on my mac (based on this thread): from appscript import app, mactypes import sys fileName =…
Danielb
  • 1,608
  • 5
  • 24
  • 34
1
vote
2 answers

Does the Rdio Desktop API give tracks unique IDs?

I've built a small desktop app for myself that logs listens from iTunes and Rdio so I can create powerful playlists based on how I listen to music over time, but it requires each track to have a unique ID that will never change, regardless of which…
Brandon Durham
  • 7,096
  • 13
  • 64
  • 101
1
vote
1 answer

py-appscript expects arguments

I want to make a Python script to control VLC. VLC can be controlled through AppleScript and by using py-appscript I can run AppleScript code from Python. Using AppleScript I can play/pause VLC by tell application "VLC" to play This equals to the…
simonbs
  • 7,932
  • 13
  • 69
  • 115
1
2 3 4 5 6 7