I’m really starting to figure things out with AppleScript.
If I had Multiple AppleScript files e.g. One.applescript, Two.applescript, etc…
Could I call them in say Main.applescript by using
#include "One.applescript"
Also, I can maximize the iPhoto window but when it comes to iTunes it does not work the same. I have two different methods that work with iPhoto
on setScreenRes_()
tell application "Finder"
set dis_res to bounds of window of desktop
set dis_width to item 3 of dis_res
set dis_height to item 4 of dis_res
end tell
end setScreenRes_
and
on setiPhoto_()
tell application "iPhoto"
activate
set bounds of window 1 to {0, 0, dis_width, dis_height}
quit
end tell
end setiPhoto_
This does not work the same with iTunes. It gives me “iTunes got an error: A descriptor type mismatch occurred.” I do not know what this means. Any help would be great. Thanks again all.