On 3/8/12 10:05 AM, Christian Prinoth wrote:
Hi,
 I just learned that appscript development has been halted. I use it a
lot, especially in scripts that automate interactions between Office and
various other aspects of OSX. Does anyone know if there is any
alternative coming up?
More generally,
Hi,
I just learned that appscript development has been halted. I use it a
lot, especially in scripts that automate interactions between Office and
various other aspects of OSX. Does anyone know if there is any alternative
coming up?
More generally, is there an official Apple roadmap on scripting
Hello all,
A while ago I wrote a Python class around appscript that would avoid
(with calls to the shell osascript command) using the standard
addition library's calls like display_dialog because it required the
launch of Python Launcher, which slowed down the interaction with the
user considerabl
Hi there-
I have the following AppleScript:
set theOutputPath to
(path to desktop folder as string) & "My Saved Workbook.csv"
tell
application "Microsoft Excel"
tell active workbook
save workbook as
filename theOutputPath file format CSV file format
end tell
end tell
This works fine. Whe
Hello,
I'm learning and enjoying the appscript module, but I'm a little confused
about how to instantiate basic k. type objects.
for example, if I want to create a variable that holds a k.boolean value to
use while scripting an application,
how do I create it, and then pass it to the set() method
Hello,
I'm learning and enjoying the appscript module, but I'm a little confused
about how to instantiate basic k. type objects.
for example, if I want to create a variable that holds a k.boolean value to
use while scripting an application,
how do I create it, and then pass it to the set() method
Thanks, works great now!
>excel = app('Microsoft Excel')
>ws = excel.worksheets['Sheet1']
>excel.AS_newreference(ws.AS_aemreference.elements('X117'))[address]
>
>
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mai
Christian Prinoth wrote:
> My problem is that this way I can only reference a range in the currently
> active worksheet.
> Using standard appscript syntax I would do the following:
>
> app('Microsoft Excel').worksheets['Sheet1'].ranges['A1'].value()
>
> to access data on a specific cell on a spec
Has,
thanks for your reply. I have tried doing what you suggest. the four char
code for the range object is X117, so I did the following:
app('Microsoft
Excel').AS_newreference(aem.app.elements('X117'))['A1'].value()
and this works fine in both Excel 2008 and Excel 2011. My problem is that
this
Christian Prinoth wrote:
> Just upgraded to Office 2011, and it appears appscript is not working
> correctly with Excel 2011.
>
> If I do the following:
>
> app(u'/Applications/Microsoft Office 2011/Microsoft
> Excel').ranges[u'B2'].value()
>
> I get:
>
> AttributeError: 'Property' object has no a
Just upgraded to Office 2011, and it appears appscript is not working
correctly with Excel 2011.
If I do the following:
> app(u'/Applications/Microsoft Office 2011/Microsoft
> Excel').ranges[u'B2'].value()
I get:
---
Attri
On Feb 5, 2011, at 1:15 PM, dgo...@juno.com wrote:
> Given your feedback below, is appscript+System Events a reasonable approach
> for test automation?
I'm sure there are many with greater experience, but I'd second everything has
said about scripting system events: brittle and fiddly pretty we
ppscript+System Events a reasonable approach for
test automation?
FYI, there is Mac automation tool that doesn't rely on screen capture - called
Squish. I've just started evaluating it.
thanks,
-Demian
-- Original Message --
From: has
To: pythonmac-sig@python.org
Su
dgodon wrote:
> Can anyone share some good examples of scripting System Events? For
> instance, to select sub-menu options of an app, or to open/close app
> windows, or dock panels in Photoshop.
GUI Scripting's a last resort where applications don't provide a
suitable scripting interface of
Can anyone share some good examples of scripting System Events? For instance,
to select sub-menu options of an app, or to open/close app windows, or dock
panels in Photoshop.
Thanks,
-Demian
$65/Hr Job - 25 Openings
Part-Time job
Hi folks,
I've just made a couple of changes to py-appscript:
- now supports Python 3.2 (Python 3.0 is no longer supported due to C
API changes)
- eliminated the osax module's dependency on deprecated Carbon APIs
(this should avoid problems for anyone submitting appscript-dependent
applications
In article
,
Christian Prinoth wrote:
> I am trying the following:
>
> mail=app('mail')
> msgs=mail.selection()
> msg=msgs[0]
>
> now I would like to use
> msg.mail_attachments
> but this won't work. If I ask for help, under elements I get the following:
>
> Elements:
> AEType("attc")
Hi,
Is it possible to "subscribe" to events using py-appscript? Example:
I'd like to be able to get callback when a user changes a rating on
iTunes.
See also: http://stackoverflow.com/questions/3842882
Thanks!
Jean-Lou.
___
Pythonmac-SIG maillist -
Hi,
Is it possible to "subscribe" to events using py-appscript? Example:
I'd like to be able to get callback when a user changes a rating on
iTunes.
See also: http://stackoverflow.com/questions/3842882
Thanks!
Jean-Lou.
___
Pythonmac-SIG maillist -
I am trying the following:
mail=app('mail')
msgs=mail.selection()
msg=msgs[0]
now I would like to use
msg.mail_attachments
but this won't work. If I ask for help, under elements I get the following:
Elements:
AEType("attc") -- by name, index, relative, range, test, id
bcc_recipients
Sean DiZazzo wrote:
I'm using appscript to do some work in Quicktime, and it keeps
erroring out somewhat unpredictably. I am opening and closing lots
of documents in quick succession when it happens. It doesn't happen
every time, but about 70%-80% of the time. When it errors, it
always
Hi,
I'm using appscript to do some work in Quicktime, and it keeps erroring out
somewhat unpredictably. I am opening and closing lots of documents in quick
succession when it happens. It doesn't happen every time, but about 70%-80%
of the time. When it errors, it always errors trying to make a
Noah Coccaro wrote:
> I have a long running server that uses appscript to send keystroke commands
> to System Events.
> It seems that System Events does not run constantly, or frequently dies.
> Quite often, appscript seems to be in a state where it incorrectly thinks
> System Events is runnin
I use a function whose sole purpose is to return a reference to System
Events to avoid this problem:
import appscript as ap
def getSystemEvents():
try:
# ask System Events for processes to see if it's there
throwaway = ap.app('/System Events').processes
I have a long running server that uses appscript to send keystroke commands
to System Events.
It seems that System Events does not run constantly, or frequently dies.
Quite often, appscript seems to be in a state where it incorrectly thinks
System Events is running, and still sends commands to it,
heya, gary - thanks!! good to know.
(and, good to hear from you - hope things are going well!)
On Wed, Nov 18, 2009 at 3:08 PM, Gary Poster wrote:
> Hey Ken. :-)
>
> It hung for me.
>
> Gary
>
> got a CommandError at count 57474
> Traceback (most recent call last):
> File "", line 1, in
> F
Hey Ken. :-)
It hung for me.
Gary
got a CommandError at count 57474
Traceback (most recent call last):
File "", line 1, in
File "", line 21, in first_timeout
File "build/bdist.macosx-10.6-universal/egg/appscript/reference.py", line
504, in __call__
appscript.reference.CommandError: Comma
On Fri, Nov 6, 2009 at 4:18 PM, Ned Deily wrote:
> In article
> <2cd46e7f0911061558r330573d0mc5ace6fa1d7b0...@mail.gmail.com>,
> ken manheimer wrote:
> > the behavior is an appscript.reference.CommandError timeout after some
> > number of appscript transactions. there seems to be a hard limit
Ronald Oussoren wrote:
> > Yes, that's part of the problem. The other part is that .pth handling
> > seems to have changed from 2.5 to 2.6.
>
> That's news to me. I've been using zipped eggs with 2.6 without any
> problems.
Don't know that it had anything to do with eggs. What I was seeing wa
Ronald Oussoren wrote:
>
> On 17 Sep, 2009, at 23:50, Bill Janssen wrote:
>
> > Ronald Oussoren wrote:
> >
> >> Bill,
> >>
> >> Appscript probably gets installed as a zipped egg, the .python-eggs
> >> directory gets created when a real filesystem path is needed for an
> >> item in such an egg.
On 17 Sep, 2009, at 23:50, Bill Janssen wrote:
Ronald Oussoren wrote:
Bill,
Appscript probably gets installed as a zipped egg, the .python-eggs
directory gets created when a real filesystem path is needed for an
item in such an egg.
Yes, that's part of the problem. The other part is that
On 17 Sep, 2009, at 23:50, Bill Janssen wrote:
Ronald Oussoren wrote:
Bill,
Appscript probably gets installed as a zipped egg, the .python-eggs
directory gets created when a real filesystem path is needed for an
item in such an egg.
Yes, that's part of the problem. The other part is that
In article <20090917234722.gb26...@panix.com>,
Aahz wrote:
> On Thu, Sep 17, 2009, Bill Janssen wrote:
> > Ronald Oussoren wrote:
> >> If you install appscript as an unzipped egg the problem should go away.
> > How does one do that?>
> You can unzip manually as with any other .ZIP file, or you
On Thu, Sep 17, 2009, Bill Janssen wrote:
> Ronald Oussoren wrote:
>>
>> If you install appscript as an unzipped egg the problem should go away.
>
> How does one do that?
You can unzip manually as with any other .ZIP file, or you can do
easy_install with -Z.
--
Aahz (a...@pythoncraft.com)
Ronald Oussoren wrote:
> Bill,
>
> Appscript probably gets installed as a zipped egg, the .python-eggs
> directory gets created when a real filesystem path is needed for an
> item in such an egg.
Yes, that's part of the problem. The other part is that .pth handling
seems to have changed from 2
On 14 Sep 2009, at 16:28, Bill Janssen wrote:
has wrote:
You can install appscript from source using plain old distutils; the
setup.py script will use setuptools if it's available and distutils
if
not. Though if there are problems with setuptools then I'd suggest
filing bug reports on tha
has wrote:
> On 13 Sep 2009, at 18:52, Bill Janssen wrote:
>
> > Is it possible to disentangle appscript from setuptools? I just
> > downloaded the sources to my Snow Leopard machine, did
> >
> > python setup.py build
> > python setup.py install
> >
> > which went just fine. But then I did
> >
On Sun, Sep 13, 2009, Ronald Oussoren wrote:
>
> Appscript probably gets installed as a zipped egg, the .python-eggs
> directory gets created when a real filesystem path is needed for an item
> in such an egg.
>
> If you install appscript as an unzipped egg the problem should go away.
My auto-i
On 13 Sep 2009, at 18:52, Bill Janssen wrote:
Is it possible to disentangle appscript from setuptools? I just
downloaded the sources to my Snow Leopard machine, did
python setup.py build
python setup.py install
which went just fine. But then I did
% python
import appscript
and got this
Bill,
Appscript probably gets installed as a zipped egg, the .python-eggs
directory gets created when a real filesystem path is needed for an
item in such an egg.
If you install appscript as an unzipped egg the problem should go away.
Ronald
On 13 sep 2009, at 19:52, Bill Janssen wrote
Is it possible to disentangle appscript from setuptools? I just
downloaded the sources to my Snow Leopard machine, did
python setup.py build
python setup.py install
which went just fine. But then I did
% python
>>> import appscript
and got this big stack trace because a ~/.python-eggs subdire
Norman Gray wrote:
Did you force the reinstall? It appears so, since it reached the
10.6 appscript install.
How do you do that? My own problem here [1] is that I can't work
out how to make appscript play with python 2.6 (or 10.6).
If the problem is that easy_install is installing appscr
On Sep 11, 2009, at 11:48 AM, Norman Gray wrote:
Did you force the reinstall? It appears so, since it reached the
10.6 appscript install.
How do you do that? My own problem here [1] is that I can't work out
how to make appscript play with python 2.6 (or 10.6).
I thought I had used the -U o
Greetings
On 2009 Sep 11, at 15:02, Brad Howes wrote:
Did you force the reinstall? It appears so, since it reached the
10.6 appscript install.
How do you do that? My own problem here [1] is that I can't work out
how to make appscript play with python 2.6 (or 10.6).
Sorry. No idea what
On Sep 11, 2009, at 12:03 AM, Noel Rappin wrote:
I did reinstall. I'm still having the same problem with Appscript
0.20, Snow Leopard's Python 2.6.1
The issue happens in a different place each time, but the error
looks like this:
File "build/bdist.macosx-10.6-universal/egg/appscript/refere
I did reinstall. I'm still having the same problem with Appscript
0.20, Snow Leopard's Python 2.6.1
The issue happens in a different place each time, but the error looks like this:
File "build/bdist.macosx-10.6-universal/egg/appscript/reference.py",
line 504, in __call__
appscript.reference.Com
On Sep 9, 2009, at 1:53 AM, has wrote:
Noel Rappin wrote:
I have a Python script that I've been using to communicate back and
forth with iTunes via py-appscript -- it's worked fine for a long
time.
Snow Leopard seems to have broken it -- everytime I run the script,
it
stops, and then exits
Noel Rappin wrote:
I have a Python script that I've been using to communicate back and
forth with iTunes via py-appscript -- it's worked fine for a long
time.
Snow Leopard seems to have broken it -- everytime I run the script, it
stops, and then exits, claiming that one of the commands has time
I have a Python script that I've been using to communicate back and
forth with iTunes via py-appscript -- it's worked fine for a long
time.
Snow Leopard seems to have broken it -- everytime I run the script, it
stops, and then exits, claiming that one of the commands has timed
out. It's never the
On 8 Sep, 2009, at 9:49, Kay Gottschalk wrote:
Hi there,
when I try to install appscript, I get the following errors:
What release of OSX are you running? Do you use /usr/bin/python or
some other Python installation (and if the latter, which one)
Ronald
smime.p7s
Description: S/MIME
Hi there,
when I try to install appscript, I get the following errors:
In file included from /System/Library/Frameworks/Carbon.framework/
Frameworks/HIToolbox.framework/Headers/CarbonEvents.h:40,
from /System/Library/Frameworks/Carbon.framework/
Frameworks/HIToolbox.framework
Sean DiZazzo wrote:
On a whim I tried the 0.20.0 version that was released today. To my
surprise, export() has grown a new keyword... timeout!
It's actually been around since the early days, although some older
documentation wasn't as clear about it. Chapter 11 of the appscript
manual li
On a whim I tried the 0.20.0 version that was released today. To my
surprise, export() has grown a new keyword... timeout!
Look like it's solved my problem so far...
Talk about luck. Thanks.
~Sean
On Fri, Jun 26, 2009 at 4:57 PM, Sean DiZazzo wrote:
> Let me first say thank you. This is my fi
Let me first say thank you. This is my first time playing with appscript,
and it has been a joy to work with. It took me about a half hour of
figuring out a few commands that I was trying to do. Then, all of a sudden,
I was writing it almost as if I had known it for years. It scared me a bit
at
Thanks for the quick reply Rajanikanth.
I ran `sudo easy_install -U macholib==dev` (which I assume is what
Russell intended) and got:
Searching for macholib==dev
Reading http://pypi.python.org/simple/macholib/
Reading http://undefined.org/python/#macholib
Best match: macholib dev
Downloading http
Hi Daryl,
Try this( It was suggested by Russell):
You might make sure your easy_install and macholib are up to date:
each_install-U macholib==dev
If that fails and tells you to do a selfupdate then do that and try
again.
-- Russell
Thanks,
Rajanikanth
On Sun, Mar 29, 2009 at 9:18 AM, Dary
I just had the same problem. Did you find a solution? (I don't see
any replies.)
--
Daryl
On Fri, Jan 23, 2009 at 2:18 AM, Rajanikanth Jammalamadaka
wrote:
> Hi!
>
> Does anybody know why I get this error?
> sudo easy_install appscript
>
> Searching for appscript
> Reading http://pypi.python.
> Jack Jansen wrote:
>
> > I wouldn't be surprised if the root of the problem is with
> > PowerPoint. It started its life as an OS9 application, so if it still
> > thinks it lives in an OS9 world with FSSpecs and colon-separated
> > pathnames, it could be trying to do the conversion to posix pa
Jack Jansen wrote:
> I wouldn't be surprised if the root of the problem is with
> PowerPoint. It started its life as an OS9 application, so if it still
> thinks it lives in an OS9 world with FSSpecs and colon-separated
> pathnames, it could be trying to do the conversion to posix paths
> itself
I wouldn't be surprised if the root of the problem is with PowerPoint.
It started its life as an OS9 application, so if it still thinks it
lives in an OS9 world with FSSpecs and colon-separated pathnames, it
could be trying to do the conversion to posix paths itself. And such a
conversion m
has wrote:
> Bill Janssen wrote:
>
> > I'm trying to write this scrap of Applescript in Python appscript:
> >
> > on run
> > tell application "Microsoft PowerPoint"
> > set this_item to path of active presentation
> > end tell
> > set unix_item to POSIX path of this_item
Bill Janssen wrote:
I'm trying to write this scrap of Applescript in Python appscript:
on run
tell application "Microsoft PowerPoint"
set this_item to path of active presentation
end tell
set unix_item to POSIX path of this_item
display dialog of
Bill Janssen wrote:
> I'm trying to write this scrap of Applescript in Python appscript:
>
> on run
> tell application "Microsoft PowerPoint"
> set this_item to path of active presentation
> end tell
> set unix_item to POSIX path of this_item
> display dia
I'm trying to write this scrap of Applescript in Python appscript:
on run
tell application "Microsoft PowerPoint"
set this_item to path of active presentation
end tell
set unix_item to POSIX path of this_item
display dialog of unix_item
end run
Ned Deily wrote:
> In article <55150.1233433...@parc.com>, Bill Janssen
> wrote:
> > has wrote:
> > > ...or prevent the OS from automatically upgrading your
> > > python process to a GUI process (which it only does if it knows the
> > > executable is located in an application bundle, e.g. Pyth
On 31 Jan 2009, at 20:18, Bill Janssen wrote:
has wrote:
...or prevent the OS from automatically upgrading your
python process to a GUI process (which it only does if it knows the
executable is located in an application bundle, e.g. Python.app/
Contents/MacOS/python).
Thanks!
I'm not runnin
In article <55150.1233433...@parc.com>, Bill Janssen
wrote:
> has wrote:
> > ...or prevent the OS from automatically upgrading your
> > python process to a GUI process (which it only does if it knows the
> > executable is located in an application bundle, e.g. Python.app/
> > Contents/MacOS/pyth
Bill Janssen wrote:
> I'm not running Python.app -- I'm running /usr/bin/python, which if I
> follow the symlinks leads me to
> /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5,
> which in turn "file" shows to be a dual-architecture executable, which
> in my case is "Mach-O
has wrote:
> ...or prevent the OS from automatically upgrading your
> python process to a GUI process (which it only does if it knows the
> executable is located in an application bundle, e.g. Python.app/
> Contents/MacOS/python).
Thanks!
I'm not running Python.app -- I'm running /usr/bin/python
Bill Janssen wrote:
We discussed this a bit last year, but with no resolution that I
remember. I've got a situation where a Python program is preventing
logout/shutdown. It's a script that just runs in an endless loop
watching what app I'm working with; when it sees one it knows
(Preview,
M
We discussed this a bit last year, but with no resolution that I
remember. I've got a situation where a Python program is preventing
logout/shutdown. It's a script that just runs in an endless loop
watching what app I'm working with; when it sees one it knows (Preview,
MS Word, Safari, etc.) it u
Rajanikanth Jammalamadaka wrote:
I get this error when trying to install appscript from source on Mac
OS X(using python 2.6.1):
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib,
file is not of required architecture for architecture ppc
collect2: ld returned 1 exit status
lipo:
In article
<84bdef3c0901281801n711713fagc12ecd27426bd...@mail.gmail.com>,
Rajanikanth Jammalamadaka wrote:
> hi!
>
> I get this error when trying to install appscript from source on Mac
> OS X(using python 2.6.1):
>
> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib,
> file i
hi!
I get this error when trying to install appscript from source on Mac
OS X(using python 2.6.1):
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib,
file is not of required architecture for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/fol
Hi!
Does anybody know why I get this error?
sudo easy_install appscript
Searching for appscript
Reading http://pypi.python.org/simple/appscript/
Reading http://freespace.virgin.net/hamish.sanderson/appscript.html
Reading http://appscript.sourceforge.net
Best match: appscript 0.19.0
Downloading
h
has wrote:
> copy Python.app's executable (.../Python.app/
> Contents/MacOS/Python) to /usr/local/bin/pythonb and use that to run
> your scripts.
Ah! That sounds easy. I'll try it.
> aemreceive's sfba module lets you run an event loop, which you need to
> handle any sort of incoming events, a
Bill Janssen wrote:
I'm having a bit of a problem with a Python script I'm running. It
sits
in a loop and periodically asks "System Events" what's going on, via
appscript. The use of appscript turns it into a "foreground process",
Yes, this is annoying and unnecessary behaviour; the proble
I'm having a bit of a problem with a Python script I'm running. It sits
in a loop and periodically asks "System Events" what's going on, via
appscript. The use of appscript turns it into a "foreground process",
in the terminology used in
http://developer.apple.com/DOCUMENTATION/MacOSX/Conceptual/
Conan C. Albrecht wrote:
I'm using appscript to script Word and BibDesk. I need to run the
script from the "Scripts" menu in one of these programs. However,
my .py script won't show up on their menus, even if the script is in
the right directory.
I assume you're referring to BibDesk. I'
I'm using appscript to script Word and BibDesk. I need to run the
script from the "Scripts" menu in one of these programs. However,
my .py script won't show up on their menus, even if the script is in
the right directory. The python script will show up on the system-
wide scripts menu, bu
Ned Deily <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Bill Janssen <[EMAIL PROTECTED]>
> wrote:
>
> > I'm starting a Python daemon using SystemStarter, and in it I'm using
> > appscript to launch an app (Entourage). I get the following error:
> >
> > CantLaunchApplicationErro
Ned Deily <[EMAIL PROTECTED]> wrote:
> Also note that in 10.4, Apple introduced launchd which is intended to
> replace the various startup mechanisms including SystemStarter. launchd
> includes the capability to define system-wide as well as per-user
> LaunchAgents (triggered by various condit
In article <[EMAIL PROTECTED]>, Bill Janssen <[EMAIL PROTECTED]>
wrote:
> I'm starting a Python daemon using SystemStarter, and in it I'm using
> appscript to launch an app (Entourage). I get the following error:
>
> CantLaunchApplicationError: CantLaunchApplicationError -606: Application is
I'm starting a Python daemon using SystemStarter, and in it I'm using
appscript to launch an app (Entourage). I get the following error:
CantLaunchApplicationError: CantLaunchApplicationError -606: Application is
background-only.
If I start the same daemon from the command-line manually, it wo
In article
<[EMAIL PROTECTED]>,
Martin Tönnishoff <[EMAIL PROTECTED]> wrote:
> Can you please help me to get this right? How do I convert a string to the
> required "unicode_text" type wich is noth
> the python builtin one.
The error message is misleading you. The problem is not the string;
Hello,
sorry to annoy you with a noobish question but I just don't understand what I
am doing wrong...
I am relatively new to Python but its better than Applescript to me.
Can you please help me to get this right? How do I convert a string to the
required "unicode_text" type wich is noth
the py
Travis Caldwell wrote:
Not sure if this is user error or a bug, but I can't seem to send
the count command to Word 2008 via appscript.
Word's count command requires an 'each' parameter, e.g.:
app('microsoft word').count(each=k.document)
A number of Carbon apps do require an 'each' paramete
Not sure if this is user error or a bug, but I can't seem to send the count
command to Word 2008 via appscript.
>>> word.documents.count()
Traceback (most recent call last):
File "", line 1, in
File
"/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-i386.egg/appscript/r
Greetings from San Francisco Bay!
Thanks for looking at this; it turned out that the problem was that I
was running Leopard's X11. My system.log had lots of this:
Jun 18 09:52:43 mymachine System Events[32983]: Unable to find class:
X11Application, exiting
Jun 18 09:52:43 mymachine com.apple.la
Am 2008-06-19 um 19:16 schrieb Bill Janssen:
So, here's another appscript problem:
/Users/wjanssen 2 % python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from appscript im
So, here's another appscript problem:
/Users/wjanssen 2 % python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from appscript import *
>>> app('System Events').processes()
Thanks, this is what I needed to know -- I'm hoping to avoid diving
into the source. I'll download FF 2 and try it out.
> appscript.terminology.dump()
Not sure what you mean here. appscript.terminology doesn't have a
"dump" function...
Bill
___
Pytho
> But you can enter raw apple events which is what you want to do.
> See here for and explanation of the brackets and how to enter them:
> http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_raw_data.html
Right, thanks, that's helpful. But how do I
Bill Janssen wrote:> But how do I write "<>" in appscript?You need to use the lower-level aem API to construct references/commands using raw AE codes. However, while both APIs are well documented in themselves, it's not currently explained to end users how to combine them in order to work around d
On Jun 18, 2008, at 20:18 PM, Bill Janssen wrote:
Thanks, Daniel.
It looks impossible from my perspective and knowledge, maybe someone
smarter has it figured out.
Apparently someone has, from the scrap of Applescript I pointed to
before (OK, here it is again:
https://bugzilla.mozilla.org/sh
Thanks, Daniel.
> It looks impossible from my perspective and knowledge, maybe someone
> smarter has it figured out.
Apparently someone has, from the scrap of Applescript I pointed to
before (OK, here it is again:
https://bugzilla.mozilla.org/show_bug.cgi?id=427448).
> Generally, the double an
On Jun 18, 2008, at 19:04 PM, Bill Janssen wrote:
I'm finally trying to learn appscript, and I thought I'd write a
little system monitor that goes around to my various open applications
and logs what files/URLs I'm looking at. For Safari, this is easy:
print app('Safari').windows.first.curre
I'm finally trying to learn appscript, and I thought I'd write a
little system monitor that goes around to my various open applications
and logs what files/URLs I'm looking at. For Safari, this is easy:
print app('Safari').windows.first.current_tab.URL()
but I can't figure out how to get the c
has solved my problem. I recently upgraded my OmniOutliner and had two
copies floating around. Double clicking Projects.oo3 opened 3.6.2 and
python was opening 3.6.5.
Thanks.
John
* *
John Ott wrote:
> I am getting file not found errors from appscript.
>
> I manually open my OmniOutliner file Projets.oo3 first then from a
> xterm
> window:
>
> python
> from appscript import *
> oop = app('OmniOutliner Professional')
> pod = oop.documents['Projects.oo3']
>
> A second copy of O
1 - 100 of 231 matches
Mail list logo