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: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller
Demo of putting thumbnail icon on txt file (MAC users)
- Attachments
-
- Set icon of txt file.zip
- (1.78 KiB) Downloaded 90 times
-
- VIP Livecode Opensource Backer
- Posts: 3465
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
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