Description:
Discussion of AppleScript and Mac scripting in general
|
|
|
OOP in Applescript
|
| |
Am I correct in thinking that you can't have a script object that's a child of a script object in a separate file?
Paul Magnussen
|
|
System version on OS 9?
|
| |
I'm trying to convert some scripts i wrote yonks ago for OS 9 to function on OS X. Ideally, I'd like to keep them compatible.
The problem at the moment is the load script command, which seems to have different syntax (X wants an absolute path)
How do you tell whether a script is running in OS 9 or OS X? System... more »
|
|
How to shoot yourself in the foot
|
| |
In article <michelle-A4BB4C.12533818112.. .@news.eternal-september.org>,
...
...
...
-- Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google... more »
|
|
Escaping an escape (quotes + backslashes)?
|
| |
Know this has come before but no prior replies makes any sense to this newbie, AppleScript language section on escape characters does not help, and my head feels like it's going to blow up from trying to visualize escaping escapes. From looks of it, I'm stuck escaping an escape character (?). This is crazy easy in shell, but fails horribly in AS.... more »
|
|
Address Book: check for membership in group
|
| |
Hello
How can I check whether a specific contact is member of a (or any) group? The following bit of code doesn't work:
set aGroup to make new group with properties {name:"aGroup"}
if (aGroup does not contain apers) then
add apers to group "abc"
end if
Thanks
|
|
Parameter transfer in applescript app
|
| |
Hello
I have written this (very) small program in applescript:
on open inItems
display dialog inItems as text
end open
wich has been stored as an app
If I drag and drop a text file icon in it it gives me the right address
on my disk
same thing for a folder
but if I drag and drop a bookmark it opens my browser instead... more »
|
|
change osx terminal encoding via command line or applescript
|
| |
We use Mac OSX (Lion) as desktops, and we use terminal windows connecting to a Linux server where we run among other things an old legacy application.
By default the encoding on Mac Terminal is utf-8 and we want to keep it that way.
But this one old legacy application needs the terminal encoding in iso latin 1... more »
|
|
VLC with Audio Hijack Pro
|
| |
Hi -
when I use "Quit source" in Audio Hijack Pro it doesn't quit VLC.
I tried a script
tell application "VLC"
activate
end tell
tell application "VLC" to quit
It works but only when I move the cursor after that,-)
Move cursor seems to be voodoo.
I also tried
keystroke
key code... more »
|
|
Newbie, iterating over contents of a selection
|
| |
I'm using Adobe InDesign, I a table in which I have selected
some cells. I want my AppleScript to look at the contents of
each selected cell and change an attribute (fill color) of the
cell if the text is "N".
So I have:
tell application "Adobe InDesign CS2"
if (count documents) is greater than 0 then... more »
|
|
|