apple event beispiele
Moderator: Guido Körber
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
apple event beispiele
hallo
es kann ja auch sein, dass ich einfach nur voll auf der leitung stehe, aber kann mit jemand irgendein apple event beispiel sagen? oder ist sowas auf der cd und ich finde es einfach nicht?
danke schön
benedikt
es kann ja auch sein, dass ich einfach nur voll auf der leitung stehe, aber kann mit jemand irgendein apple event beispiel sagen? oder ist sowas auf der cd und ich finde es einfach nicht?
danke schön
benedikt
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
schön schön.
jetzt bitte ich nochmal um so eine augenöffnende antwort ;-)
wo kann ich denn die befehle finden? oder am besten sowas wie es schon für die c befehle gibt, nur für apple event,.. :D
ahhh,.. evtl. habe ich es schon gefunden,.. man geht in den apple script editor und wählt ablage -> funktionisverzeichnis öffnen und dann applescriptgateway aus?
SEIDL.
jetzt bitte ich nochmal um so eine augenöffnende antwort ;-)
wo kann ich denn die befehle finden? oder am besten sowas wie es schon für die c befehle gibt, nur für apple event,.. :D
ahhh,.. evtl. habe ich es schon gefunden,.. man geht in den apple script editor und wählt ablage -> funktionisverzeichnis öffnen und dann applescriptgateway aus?
SEIDL.
Last edited by Benedikt.Seidl on Thu Sep 15, 2005 6:05 pm, edited 2 times in total.
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
sorry für das ewige generve, ich steig einfach nicht durch.
wenn ich das jetzt so mache, sehe ich nur befehle, die nichts mit dem warrior zu tun haben.
geh ich allerdings in den ordner "IOWarriorAppleScriptGateway.app" finde ich IOWarriorAppleScriptGateway.app/Contents/Resources/IOWarriorSuite.scriptSuite
und wenn ich mir das so anschaue, finde ich in den schnipseln davon einen zusammenhang mit dem applescript / event beispiel.
zur zeit versuche ich es mit "iWrSIWpr" aber leider ohne erfolg,..
SEIDL.
wenn ich das jetzt so mache, sehe ich nur befehle, die nichts mit dem warrior zu tun haben.
geh ich allerdings in den ordner "IOWarriorAppleScriptGateway.app" finde ich IOWarriorAppleScriptGateway.app/Contents/Resources/IOWarriorSuite.scriptSuite
und wenn ich mir das so anschaue, finde ich in den schnipseln davon einen zusammenhang mit dem applescript / event beispiel.
zur zeit versuche ich es mit "iWrSIWpr" aber leider ohne erfolg,..
SEIDL.
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
oh! gut,.. jetzt oute ich mich wahrscheinlich als total trottel:
ich habe vorhin das ae einfach mal als as gedeutet. deswegen bekam ich auch immer einen fehler, als ich versuchte apple events an das apple script gateway schickte.
und nun habe ich nochmal nach "AEGateway" gesucht, und das auch gefunden, aber nur im os 9 ordner.
gibt es kein aegateway für os x?
SEIDL.
ich habe vorhin das ae einfach mal als as gedeutet. deswegen bekam ich auch immer einen fehler, als ich versuchte apple events an das apple script gateway schickte.
und nun habe ich nochmal nach "AEGateway" gesucht, und das auch gefunden, aber nur im os 9 ordner.
gibt es kein aegateway für os x?
SEIDL.
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
aber ich schicke sie trotzdem an das programm "IOWarriorAppleScriptGateway.app" ?
wenn ich das allerdings als funktionsverzeichnis im script editor öffne, bekomme ich keine warrior befehle,.. leider. nur das hier:
Standard Suite Common classes and commands for most applications.
close?v : Close an object.
close reference : the object for the command
[saving ask/no/yes] : Specifies whether changes should be saved before closing.
[saving in alias] : The file in which to save the object.
count?v : Return the number of elements of a particular class within an object.
count reference : the object for the command
[each type class] : The class of objects to be counted.
? integer
delete?v : Delete an object.
delete reference : the object for the command
duplicate?v : Copy object(s) and put the copies at a new location.
duplicate reference : the object for the command
to location reference : The location for the new object(s).
[with properties record] : Properties to be set in the new duplicated object(s).
exists?v : Verify if an object exists.
exists reference : the object for the command
? boolean
get?v : Get the data for an object.
get reference : the object for the command
? anything
make?v : Make a new object.
make
new type class : The class of the new object.
[at location reference] : The location at which to insert the object.
[with data anything] : The initial data for the object.
[with properties record] : The initial values for properties of the object.
? reference
move?v : Move object(s) to a new location.
move reference : the object for the command
to location reference : The new location for the object(s).
open?v : Open an object.
open alias : The file(s) to be opened.
print?v : Print an object.
print alias : The file(s) or document(s) to be printed.
[print dialog boolean] : Should the application show the Print dialog?
[with properties print settings] : the print settings
quit?v : Quit an application.
quit reference : the object for the command
[saving ask/no/yes] : Specifies whether changes should be saved before quitting.
save?v : Save an object.
save reference : the object for the command
[as Unicode text] : The file type in which to save the data.
[in alias] : The file in which to save the object.
set?v : Set an object's data.
set reference : the object for the command
to anything : The new value.
application?n [inh. item] : An application's top level scripting object.
elements
contains documents, windows.
properties
frontmost (boolean, r/o) : Is this the frontmost (active) application?
name (Unicode text, r/o) : The name of the application.
version (Unicode text, r/o) : The version of the application.
color?n [inh. item] : A color.
document?n [inh. item] : A document.
elements
contained by application.
properties
modified (boolean, r/o) : Has the document been modified since the last save?
name (Unicode text) : The document's name.
path (Unicode text) : The document's path.
item?n : A scriptable object.
properties
class (type class, r/o) : The class of the object.
properties (record) : All of the object's properties.
window?n [inh. item] : A window.
elements
contained by application.
properties
bounds (bounding rectangle) : The bounding rectangle of the window.
closeable (boolean, r/o) : Whether the window has a close box.
document (document, r/o) : The document whose contents are being displayed in the window.
floating (boolean, r/o) : Whether the window floats.
id (integer, r/o) : The unique identifier of the window.
index (integer) : The index of the window, ordered front to back.
miniaturizable (boolean, r/o) : Whether the window can be miniaturized.
miniaturized (boolean) : Whether the window is currently miniaturized.
modal (boolean, r/o) : Whether the window is the application's current modal window.
name (Unicode text) : The full title of the window.
resizable (boolean, r/o) : Whether the window can be resized.
titled (boolean, r/o) : Whether the window has a title bar.
visible (boolean) : Whether the window is currently visible.
zoomable (boolean, r/o) : Whether the window can be zoomed.
zoomed (boolean) : Whether the window is currently zoomed.
Text Suite A set of basic classes for text processing.
attachment?n [inh. text > item] : Represents an inline text attachment. This class is used mainly for make commands.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
file name (Unicode text) : The path to the file for the attachment
attribute run?n [inh. item] : This subdivides the text into chunks that all have the same attributes.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
character?n [inh. item] : This subdivides the text into characters.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
paragraph?n [inh. item] : This subdivides the text into paragraphs.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
text?n [inh. item] : Rich (styled) text
elements
contains attachments, attribute runs, characters, paragraphs, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
word?n [inh. item] : This subdivides the text into words.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
Type Definitions Records used in scripting IOWarriorAppleScriptGateway
print settings?n
properties
copies (integer) : the number of copies of a document to be printed
collating (boolean) : Should printed copies be collated?
starting page (integer) : the first page of the document to be printed
ending page (integer) : the last page of the document to be printed
pages across (integer) : number of logical pages laid across a physical page
pages down (integer) : number of logical pages laid out down a physical page
error handling (standard/detailed) : how errors are handled
fax number (string) : for fax number
target printer (string) : for target printer
SEIDL.
wenn ich das allerdings als funktionsverzeichnis im script editor öffne, bekomme ich keine warrior befehle,.. leider. nur das hier:
Standard Suite Common classes and commands for most applications.
close?v : Close an object.
close reference : the object for the command
[saving ask/no/yes] : Specifies whether changes should be saved before closing.
[saving in alias] : The file in which to save the object.
count?v : Return the number of elements of a particular class within an object.
count reference : the object for the command
[each type class] : The class of objects to be counted.
? integer
delete?v : Delete an object.
delete reference : the object for the command
duplicate?v : Copy object(s) and put the copies at a new location.
duplicate reference : the object for the command
to location reference : The location for the new object(s).
[with properties record] : Properties to be set in the new duplicated object(s).
exists?v : Verify if an object exists.
exists reference : the object for the command
? boolean
get?v : Get the data for an object.
get reference : the object for the command
? anything
make?v : Make a new object.
make
new type class : The class of the new object.
[at location reference] : The location at which to insert the object.
[with data anything] : The initial data for the object.
[with properties record] : The initial values for properties of the object.
? reference
move?v : Move object(s) to a new location.
move reference : the object for the command
to location reference : The new location for the object(s).
open?v : Open an object.
open alias : The file(s) to be opened.
print?v : Print an object.
print alias : The file(s) or document(s) to be printed.
[print dialog boolean] : Should the application show the Print dialog?
[with properties print settings] : the print settings
quit?v : Quit an application.
quit reference : the object for the command
[saving ask/no/yes] : Specifies whether changes should be saved before quitting.
save?v : Save an object.
save reference : the object for the command
[as Unicode text] : The file type in which to save the data.
[in alias] : The file in which to save the object.
set?v : Set an object's data.
set reference : the object for the command
to anything : The new value.
application?n [inh. item] : An application's top level scripting object.
elements
contains documents, windows.
properties
frontmost (boolean, r/o) : Is this the frontmost (active) application?
name (Unicode text, r/o) : The name of the application.
version (Unicode text, r/o) : The version of the application.
color?n [inh. item] : A color.
document?n [inh. item] : A document.
elements
contained by application.
properties
modified (boolean, r/o) : Has the document been modified since the last save?
name (Unicode text) : The document's name.
path (Unicode text) : The document's path.
item?n : A scriptable object.
properties
class (type class, r/o) : The class of the object.
properties (record) : All of the object's properties.
window?n [inh. item] : A window.
elements
contained by application.
properties
bounds (bounding rectangle) : The bounding rectangle of the window.
closeable (boolean, r/o) : Whether the window has a close box.
document (document, r/o) : The document whose contents are being displayed in the window.
floating (boolean, r/o) : Whether the window floats.
id (integer, r/o) : The unique identifier of the window.
index (integer) : The index of the window, ordered front to back.
miniaturizable (boolean, r/o) : Whether the window can be miniaturized.
miniaturized (boolean) : Whether the window is currently miniaturized.
modal (boolean, r/o) : Whether the window is the application's current modal window.
name (Unicode text) : The full title of the window.
resizable (boolean, r/o) : Whether the window can be resized.
titled (boolean, r/o) : Whether the window has a title bar.
visible (boolean) : Whether the window is currently visible.
zoomable (boolean, r/o) : Whether the window can be zoomed.
zoomed (boolean) : Whether the window is currently zoomed.
Text Suite A set of basic classes for text processing.
attachment?n [inh. text > item] : Represents an inline text attachment. This class is used mainly for make commands.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
file name (Unicode text) : The path to the file for the attachment
attribute run?n [inh. item] : This subdivides the text into chunks that all have the same attributes.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
character?n [inh. item] : This subdivides the text into characters.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
paragraph?n [inh. item] : This subdivides the text into paragraphs.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
text?n [inh. item] : Rich (styled) text
elements
contains attachments, attribute runs, characters, paragraphs, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
word?n [inh. item] : This subdivides the text into words.
elements
contains attachments, attribute runs, characters, paragraphs, words; contained by attachments, attribute runs, characters, paragraphs, texts, words.
properties
color (color) : The color of the first character.
font (Unicode text) : The name of the font of the first character.
size (integer) : The size in points of the first character.
Type Definitions Records used in scripting IOWarriorAppleScriptGateway
print settings?n
properties
copies (integer) : the number of copies of a document to be printed
collating (boolean) : Should printed copies be collated?
starting page (integer) : the first page of the document to be printed
ending page (integer) : the last page of the document to be printed
pages across (integer) : number of logical pages laid across a physical page
pages down (integer) : number of logical pages laid out down a physical page
error handling (standard/detailed) : how errors are handled
fax number (string) : for fax number
target printer (string) : for target printer
SEIDL.
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern
-
- Site Admin
- Posts: 2857
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
-
- Posts: 19
- Joined: Sat Aug 14, 2004 10:45 am
- Location: thalmässing -> bayern