blandinnovation
Registered
Hello,
I was wondering if there was any way to combine two applescripts. I am not familiar to applescript, and in fact only need it for a photo project. So far I have the Applescript to get a random image:
tell application "Finder"
(* get a random image file from a desktop folder *)
set randomImage to some file of folder "Photo Final"
end tell
and I have the Applescript to open the picture I want:
tell application "Preview"
launch
open "Macintosh HD:continuefilepath.jpg"
end tell
Can someone help me combine the codes so that Preview opens whatever random image the first code generates?
I was wondering if there was any way to combine two applescripts. I am not familiar to applescript, and in fact only need it for a photo project. So far I have the Applescript to get a random image:
tell application "Finder"
(* get a random image file from a desktop folder *)
set randomImage to some file of folder "Photo Final"
end tell
and I have the Applescript to open the picture I want:
tell application "Preview"
launch
open "Macintosh HD:continuefilepath.jpg"
end tell
Can someone help me combine the codes so that Preview opens whatever random image the first code generates?