Page 1 of 1
Demo of putting thumbnail icon on txt file (MAC users)
Posted: Tue Jan 28, 2020 1:49 pm
by micmac
Hi there
This is a quick demonstration of concept of putting a thumbnail icon on txt file used to store graphic information.
Michael
Re: Demo of putting thumbnail icon on txt file (MAC users)
Posted: Tue Jan 28, 2020 11:59 pm
by bn
Hi Michael,
that is a nifty workaround.
I had to add a second delay
Code: Select all
tell application "Finder"
activate
open information window of file POSIX file "filePath"
tell application "System Events" to key code 48
delay 1
tell application "System Events" to keystroke "v" using command down
delay 1
close information window of file POSIX file "filePath"
end tell
Then it worked for me.
Kind regards
Bernd
Re: Demo of putting thumbnail icon on txt file (MAC users)
Posted: Sat Feb 01, 2020 2:44 pm
by micmac
plus even a little more
...to go back to livecode again
Code: Select all
tell application "Finder"
activate
open information window of file POSIX file "filePath"
tell application "System Events" to key code 48
delay 1
tell application "System Events" to keystroke "v" using command down
delay 1
close information window of file POSIX file "filePath"
end tell
tell application "Livecode"
activate
end tell
BTW: key code 48 = Tab
Michael