Hi there
This is a quick demonstration of concept of putting a thumbnail icon on txt file used to store graphic information.
Michael
Demo of putting thumbnail icon on txt file (MAC users)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Demo of putting thumbnail icon on txt file (MAC users)
- Attachments
-
- Set icon of txt file.zip
- (1.78 KiB) Downloaded 283 times
Re: Demo of putting thumbnail icon on txt file (MAC users)
Hi Michael,
that is a nifty workaround.
I had to add a second delay
Then it worked for me.
Kind regards
Bernd
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
Kind regards
Bernd
Re: Demo of putting thumbnail icon on txt file (MAC users)
plus even a little more 
...to go back to livecode again
BTW: key code 48 = Tab
Michael

...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
Michael