0
votes

I use this to get a prompt where i can select a file

set thePath to quoted form of POSIX path of (choose folder with prompt "whatever)

How can i see hidden files in the "choose folder with prompt"? Allowing to see hidden files in finder doesn't do anything different.

1
For the benefit of those who answer as well as future readers: If an answer solves your problem, please accept it by clicking the large check mark next to it; if you find an answer helpful, please up-vote it by clicking the up-arrow icon (you may do both). See the relevant help-center article. If your question isn't fully answered yet, please provide feedback. - mklement0

1 Answers

2
votes

You simply need to add with invisibles:

set thePath to quoted form of POSIX path of ¬
 (choose folder with prompt "whatever" with invisibles)

You can find the full syntax of the choose folder command in the Standard Additions dictionary: in AppleScript Editor, press Cmd-Shift-O (or select File > Open Dictionary...) and select StandardAdditions.osax from the list.