Jump to content

Path Finder: open new window


Recommended Posts

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

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 by deanishe
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...