passing parameter to AppleScript app: possible?
I want to use IBM Notes LotusScript to open a folder in Finder. I can successfully use the the LotusScript Shell() command to call an Applescript app I wrote, example:
result = Shell("open -a OpenMyFolder.app")
That works.
My Applescript app with HARDCODED FOLDER is this:
set mylocation to "smb://server.domain.com/sharename/afolder"
tell application "Finder"
open locationmylocation
activate
end tell
It works.
What I need is to be able to pass the folder name to my app from the LotusScript Shell() command, as in:
result = Shell("open -a OpenMyFolder.app smb://server.domain.com/sharename/afolder")
Is there any way to do this?
Thank you in advance....
Trey
MacBook Pro, OS X Yosemite (10.10.2)