Qwarqwa Posted November 24, 2016 Share Posted November 24, 2016 Hi: i tried a seemingly simple thing, opening and closing the active window in Path Finder. However ... closing runs smoothly with on run argv tell application "Path Finder" to close every window end run however opening does not work: on run argv tell application "Path Finder" to open new window end run Why is this, appreciate some help! Link to comment
deanishe Posted November 24, 2016 Share Posted November 24, 2016 (edited) You should read the application's dictionary in Script Editor. The open command takes a file path (or multiple file paths): tell application "Path Finder" to open (path to home folder) You probably also want to activate the app: tell application "Path Finder" open (path to home folder) activate end tell Edited November 24, 2016 by deanishe Link to comment
Qwarqwa Posted November 25, 2016 Author Share Posted November 25, 2016 Thx a bunch, deanishe! You refer to the Apple Script Language Guide, I suppose. I'll check it out. Thx for helping! Link to comment
deanishe Posted November 25, 2016 Share Posted November 25, 2016 No, I'm referring to Path Finder's scripting dictionary, which you can read in Script Editor. Check out Script Editor's File menu. Link to comment
Qwarqwa Posted November 26, 2016 Author Share Posted November 26, 2016 thx, this worked great! You were a help, thx! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now