Skip to main content
davidc88034496
Known Participant
April 22, 2021
Question

is it possible to open a folder in macOS-finder/Windows-Explorer from Adober XD scripts?

  • April 22, 2021
  • 1 reply
  • 697 views

Hi,

i have a panel script here.  in the script i pick a folder.  i am able to successfully save to that folder.. however, i just need to open the location of that folder.. is it possible to open the folders in mac os finder?  i want to create a button that says "Open Folder Location" and it will open that folder i picked.

 

thank you

    This topic has been closed for replies.

    1 reply

    HARSHIKA_VERMA
    Community Manager
    Community Manager
    April 26, 2021

    Hi David,

     

    Sorry for the delay in response. If I heard you right, it looks you are trying to do this: https://support.apple.com/en-in/guide/mac-help/mchlp1032/11.0/mac/11.0#:~:text=Open%20a%20single%20folder&text=The%20folder%20opens%20in%20a,have%20folders%20open%20in%20windows.

     

    If so, I would suggest trying the steps and see if that helps.

     

    Thanks,

    Harshika

    davidc88034496
    Known Participant
    April 27, 2021

    Thank you Harshika but this is not the answer i was looking for. 

    i was hoping to open folders using Adobe XD UXP JavaScript library/API... for example, here is the UXP API https://adobexdplatform.com/plugin-docs/reference/uxp/ i was wondering if its possible to simply open a folder in finder using Adobe XD API JavaScript.

     

    thank you

    davidc88034496
    Known Participant
    April 29, 2021

    maybe i am making it too complicated..

    lets say i want to open a folder.. lets say the folder is this..

     

    /User/skywalker/Desktop/images

     

    how can i open this using JavaScript.. i assume tehre should be a langauge like

    let folder = new Folder();

    folder.open("User/skywalker/Desktop/images");