Wednesday, December 13, 2017

#1 2002-02-13 03:00:40 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

iPhoto, AS, Dictionary...jeeezz

I have OS 10.1.2 Script editor 1.7 Applescript 1.8.1
I cannot open the dictionary for iPhoto! Try through the script editor or just plain drop iPhoto onto it...all I get is:
"Could not read the dictionary of the application or extension because of a program error."
All I want to do is: open iPhoto - import a jpeg into a library named "Mycards"
Also...record script doesn't seem to work either...
Is AppleScript ready for OSX? I admit I'm a rookie at AS but I can't even open a dictionary to learn...jeeeezzzzzz


One mans trash is another mans treasure

Offline

 

#2 2002-02-13 06:59:05 am

David Lloyd
Member
From:: Australia
Registered: 2002-11-22
Posts: 23
Website

Re: iPhoto, AS, Dictionary...jeeezz

: I have OS 10.1.2 Script editor 1.7 Applescript 1.8.1
: I cannot open the dictionary for iPhoto! Try through the script
: editor or just plain drop iPhoto onto it...all I get is:
: "Could not read the dictionary of the application or
: extension because of a program error."
: All I want to do is: open iPhoto - import a jpeg into a library
: named "Mycards"
: Also...record script doesn't seem to work either...
: Is AppleScript ready for OSX? I admit I'm a rookie at AS but I
: can't even open a dictionary to learn...jeeeezzzzzz
Actually there is no dictionary for iPhoto... it is not scriptable. I believe the iBook scripts offered by Apple do not access iPhoto directly as such...
Dave L.


david@kanzu.com
http://www.kanzu.com

Offline

 

#3 2002-02-13 07:18:14 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: iPhoto, AS, Dictionary...jeeezz

: Actually there is no dictionary for iPhoto... it is not
: scriptable. I believe the iBook scripts offered by Apple do
: not access iPhoto directly as such...
: Dave L.
*************************************** I downloaded the nifty "iPhoto Library Manager" made by bwebster@mac.com who offers the following script in his read me file...so I assumed it was applescriptable.
Bit of a shame if iPhoto is not applescriptable...too bad.
sims -----------------------------------------------------------------

Applescript:

tell application "System Events"
--quit iPhoto if it's running
if exists process "iPhoto" then
tell application "iPhoto" to quit
end if
--wait until iPhoto has quit completely
repeat until not (exists process "iPhoto")
delay 1
end repeat
end tell --set the new current library tell application "iPhoto Library Manager"
set current of library "Default" to true
quit end tell --relaunch iPhoto tell application "iPhoto" to activate


One mans trash is another mans treasure


Filed under: iphoto, System

Offline

 

#4 2002-02-13 10:14:20 am

Rob
Member
From:: Ohio, USA
Registered: 2002-11-20
Posts: 1886

Re: iPhoto, AS, Dictionary...jeeezz

: Bit of a shame if iPhoto is not applescriptable...too bad.
If I'm not mistaken, version 1.0 of iTunes wasn't scriptable
either, even though it was based on SoundJam. It's possible
that Apple just wanted to makeiPhoto available as soon as
possible and maybe an upcoming release will introduce
scriptability.
Note: If I recall correctly, iTunes v1.x could be scripted using
SoundJam's AppleScript terminology. Apple just hid the library
until they had time to upate it.
Later,
Rob J

Offline

 

#5 2002-02-13 10:33:38 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: iPhoto, AS, Dictionary...jeeezz

iPhot will become scriptable, but releasing the ap was a higher priority.
dont fret it'll get there. . .


One mans trash is another mans treasure

Offline

 

#6 2002-02-19 08:38:54 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: iPhoto, AS, Dictionary...jeeezz

: Bit of a shame if iPhoto is not applescriptable...too bad.
: sims
: -----------------------------------------------------------------
: tell application "System Events"
: --quit iPhoto if it's running
: if exists process "iPhoto" then
: tell application "iPhoto" to quit
: end if
: --wait until iPhoto has quit completely
: repeat until not (exists process "iPhoto")
: delay 1
: end repeat end tell --set the new current library tell
: application "iPhoto Library Manager"
: set current of library "Default" to true
: quit end tell --relaunch iPhoto tell application
: "iPhoto" to activate
I could be mistaken, but the key part of the above script is in the word "process". From what I understand of the Apple Event structure, the OS is the one who understands "process", and not iPhoto.
Also, I remember seing a few non-scriptable apps that had a Required Suite under the classic OS, but not anything useful beyond quit, open, activate etc. Perhaps OSX by default have these built in (and may even be in fact required) and therefore are taken for granted by Apple Events.
Cheers
Ian


One mans trash is another mans treasure


Filed under: iphoto, System

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)