Open info window in finder by applescript -
i've problems find correct apple script command: want open info window given file or folder. it's window can open via cmd+i in finder. want able automate action script file. code looks this:
set afile posix file "/users/xyz/documents/test.rtf" tell application "finder" open information window of afile
but doesn't work. error message says file "information window of macintosh hd:users:xyz:documents:test.rtf" cannot opened.
some commands picky posix file. can coerce else , work...
set afile (posix file "/users/xyz/documents/test.rtf") alias tell application "finder" open information window of afile
or
set afile (posix file "/users/xyz/documents/test.rtf") text tell application "finder" open information window of file afile
Comments
Post a Comment