Hi everyone!
I’m totally new with applescripting, so I could REALLY need your help on this.
I’m making a hybrid cd-rom application with a flashprojector, I want to open some websites and pdf files from this projector.
I use an flash actionscript which determines which operating system you’re using, if it’s not windows, it calls an .app file which is in a folder called fscommand in the root of the cd-rom. In this folder fscommand there are 2 other folders called “websites” and “animaties”.
For example; when clicking a button in the projector it calls website1.app,
flash automatically looks in the fscommand folder for this website1.app,
website1.app SHOULD open the file: index.html in the folder:
cdrom/fscommand/websites/website1/index.html
So I made the applescript like this:
tell application "Finder"
activate
select file "index.html" of folder "website1" of folder "websites"
open selection
end tell
But this doesn’t seem to work… Could someone tell me what I’m doing wrong?
Probably something with the wrong path?
Any help is very much appreciated!