JXA and window targets

cocoatech's Avatar

cocoatech

29 Dec, 2017 05:24 PM

How do I get the POSIX path of windows' targets in JXA?

The equivalent of POSIX path of (target of theFinderWindow)

  1. Support Staff 1 Posted by Path Finder Sup... on 03 Jan, 2018 06:32 PM

    Path Finder Support Team's Avatar

    Hi,

    Thanks for reaching out! Sorry for the late reply. 

    Unfortunately, PathFinder doesn't allow you to copy the file (window) path in POSIX format now. 
    I am forwarding your message to our developers as a feature request. 

    Though you can always (manually) get file path by right-clicking it and choosing Copy Path. 
    Also, you can right-click the Path Line. We support exporting the path in UNIX, HFS, Windows, Terminal and URL formats. 

    I hope this helps. Please feel free to write us back and we will be happy to assist you.

    Best Regards,
    Jordan
    Path Finder Support Team

  2. Path Finder Support Team closed this discussion on 03 Jan, 2018 06:32 PM.

  3. cocoatech re-opened this discussion on 05 Jan, 2018 03:06 PM

  4. 2 Posted by cocoatech on 05 Jan, 2018 03:06 PM

    cocoatech's Avatar

    Hi Jordan,

    It appears there has been a misunderstanding, as your answer is not related to my question.

    I'm asking about getting the window target via scripting, not clicking on things.

    Unfortunately, PathFinder doesn't allow you to copy the file (window) path in POSIX format now.

    Yes, it does. It is possible via AppleScript. I would like to know the JXA (JavaScript) equivalent for the AppleScript snippet I posted.

    Thanks,
    Dean

  5. Support Staff 3 Posted by Path Finder Sup... on 05 Jan, 2018 03:57 PM

    Path Finder Support Team's Avatar

    Hi Dean, 

    In this case, sorry for the confusion. 

    I'm forwarding your request to our developers. 
    But, unfortunately, it may take some time for their response since they are quite busy with major issues now. 

    Don't hesitate to contact us should any additional questions arise. 

    Best Regards,
    Jordan
    Path Finder Support Team

  6. Path Finder Support Team closed this discussion on 05 Jan, 2018 03:57 PM.

  7. Path Finder Support Team re-opened this discussion on 05 Jan, 2018 03:57 PM

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac