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

: 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.

: 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 -----------------------------------------------------------------

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

: 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

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

: 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