Folder Actions opening GraphicConverter

This area contains the messages from the old Yahoo gcmac group after the port.
Post Reply
Robert Poland
Posts: 0
Joined: Sun Jan 03, 2010 3:45 pm

Folder Actions opening GraphicConverter

Post by Robert Poland »

Thorsten, Any progress getting "Folder Actions opening GraphicConverter" fixed? TIA, Robert Poland - Fort Collins, CO
thorstenlemke
Posts: 0
Joined: Fri Dec 30, 2016 12:00 pm

Re: Folder Actions opening GraphicConverter

Post by thorstenlemke »

Hello Robert, No idea, yet. Also, I can not reproduce it here, yet. Thorsten > Von: Robert Poland <rpoland@usa.net> > Antworten an: <gcmac@yahoogroups.com> > Datum: Mon, 30 Apr 2012 11:04:48 -0600 > An: GcMac <gcmac@yahoogroups.com> > Betreff: [gcmac] Folder Actions opening GraphicConverter > > Thorsten, > > Any progress getting "Folder Actions opening GraphicConverter" fixed? > > > TIA, > > Robert Poland - Fort Collins, CO > > >
Robert Poland
Posts: 0
Joined: Sun Jan 03, 2010 3:45 pm

Re: Folder Actions opening GraphicConverter

Post by Robert Poland »

Thorsten,I have the following script attached to a folder on the desktop. Whenever the folder is accessed or closed GraphicConverter in opened.(* 9/6/11 - fileEmpty, folder action, sets index color to red if folder is not empty otherwise sets it to none    *)on adding folder items to this_folder after receiving these_items set f to POSIX path of "Macintosh HD:Users:rpoland:Desktop:scans ƒ" set folderContents to (do shell script "ls -t " & quoted form of f) set the clipboard to (do shell script "ls -t " & quoted form of f) set f to (path to desktop as text) & "Scans ƒ" as alias if folderContents ≠ "" then beep set f to (path to desktop as text) & "Scans ƒ" as alias tell application "Finder" set the label index of f to 2 -- Red end tell end ifend adding folder items toon removing folder items from this_folder set f to POSIX path of "Macintosh HD:Users:rpoland:Desktop:scans ƒ" set folderContents to (do shell script "ls -t " & quoted form of f) set the clipboard to (do shell script "ls -t " & quoted form of f) set f to (path to desktop as text) & "Scans ƒ" as alias if folderContents = "" then beep 2 tell application "Finder" set the label index of f to 0 -- none end tell end ifend removing folder items fromOn Apr 30, 2012, at 11:31 AM, Thorsten Lemke wrote: Hello Robert,No idea, yet.Also, I can not reproduce it here, yet.ThorstenVon: Robert Poland <rpoland@usa.net>Antworten an: <gcmac@yahoogroups.com>Datum: Mon, 30 Apr 2012 11:04:48 -0600An: GcMac <gcmac@yahoogroups.com>Betreff: [gcmac] Folder Actions opening GraphicConverterThorsten,Any progress getting "Folder Actions opening GraphicConverter" fixed?TIA,Robert Poland - Fort Collins, CO Robert Poland2.7 GHz Intel Core I5, 27” iMac  12 GB Ram, 1TB HD, OS 10.7.3
Robert Poland
Posts: 0
Joined: Sun Jan 03, 2010 3:45 pm

Re: Folder Actions opening GraphicConverter

Post by Robert Poland »

Oops, was wrong script.Thorsten,I have the following script attached to a folder on the desktop. Whenever the folder is accessed or closed GraphicConverter in opened.(* fileEmpty.scpt - 3/15/2012 - by Robert Poland, Folder Action script.*)on adding folder items to thisFolder after receiving AddedItems tell application "Finder" delay 1 set labelCount to (count of items of folder thisFolder) if labelCount > 7 then set labelCount to 7 as integer set label index of folder thisFolder to labelCount end tellend adding folder items toon removing folder items from thisFolder after losing RemovedItems tell application "Finder" delay 1 if items of thisFolder is {} then set label index of folder thisFolder to 0 else set labelCount to (count of items of folder thisFolder) if labelCount > 7 then set labelCount to 7 as integer set label index of folder thisFolder to labelCount end if end tellend removing folder items fromOn Apr 30, 2012, at 11:31 AM, Thorsten Lemke wrote: Hello Robert,No idea, yet.Also, I can not reproduce it here, yet.ThorstenVon: Robert Poland <rpoland@usa.net>Antworten an: <gcmac@yahoogroups.com>Datum: Mon, 30 Apr 2012 11:04:48 -0600An: GcMac <gcmac@yahoogroups.com>Betreff: [gcmac] Folder Actions opening GraphicConverterThorsten,Any progress getting "Folder Actions opening GraphicConverter" fixed?TIA,Robert Poland - Fort Collins, CO Robert Poland2.7 GHz Intel Core I5, 27” iMac  12 GB Ram, 1TB HD, OS 10.7.3
thorstenlemke
Posts: 0
Joined: Fri Dec 30, 2016 12:00 pm

Re: Folder Actions opening GraphicConverter

Post by thorstenlemke »

Ho Robert, One idea: What happens if you encapsulate the script in: tell application finder end tell Because the plain script uses the current application: tell current application do shell script "ls -t '/Users/thorstenlemke/Desktop/scans Ÿ'" --> "cadintosh.png" do shell script "ls -t '/Users/thorstenlemke/Desktop/scans Ÿ'" --> "cadintosh.png" end tell tell application "AppleScript Editor" set the clipboard to "cadintosh.png" end tell tell current application path to desktop as text --> "Master:Users:thorstenlemke:Desktop:" beep path to desktop as text --> "Master:Users:thorstenlemke:Desktop:" end tell tell application "Finder" set label index of alias "Master:Users:thorstenlemke:Desktop:scans Ÿ:" to 2 --> 2 end tell Result: 2 Thorsten > Von: Robert Poland <rpoland@usa.net> > Antworten an: <gcmac@yahoogroups.com> > Datum: Mon, 30 Apr 2012 11:48:23 -0600 > An: <gcmac@yahoogroups.com> > Betreff: Re: [gcmac] Folder Actions opening GraphicConverter > > Thorsten, > > I have the following script attached to a folder on the desktop. Whenever the > folder is accessed or closed GraphicConverter in opened. > > (* 9/6/11 - fileEmpty, folder action, sets index color to red if folder is not > empty otherwise sets it to none > *) > on adding folder items to this_folder after receiving these_items > set f to POSIX path of "Macintosh HD:Users:rpoland:Desktop:scans Ÿ" > set folderContents to (do shell script "ls -t " & quoted form of f) > set the clipboard to (do shell script "ls -t " & quoted form of f) > set f to (path to desktop as text) & "Scans Ÿ" as alias > if folderContents ‚ "" then > beep > set f to (path to desktop as text) & "Scans Ÿ" as alias > tell application "Finder" > set the label index of f to 2 -- Red > end tell > end if > end adding folder items to > > on removing folder items from this_folder > set f to POSIX path of "Macintosh HD:Users:rpoland:Desktop:scans Ÿ" > set folderContents to (do shell script "ls -t " & quoted form of f) > set the clipboard to (do shell script "ls -t " & quoted form of f) > set f to (path to desktop as text) & "Scans Ÿ" as alias > if folderContents = "" then > beep 2 > tell application "Finder" > set the label index of f to 0 -- none > end tell > end if > end removing folder items from > > >
Robert Poland
Posts: 0
Joined: Sun Jan 03, 2010 3:45 pm

Re: Folder Actions opening GraphicConverter

Post by Robert Poland »

On May 2, 2012, at 2:32 AM, Thorsten Lemke wrote: Ho Robert,One idea:What happens if you encapsulate the script in:tell application finderend tellThe script is encapsulated, See newest version below. Previous version was also encapsulated.Because the plain script uses the current application:tell current application    do shell script "ls -t '/Users/thorstenlemke/Desktop/scans ƒ'"        --> "cadintosh.png"    do shell script "ls -t '/Users/thorstenlemke/Desktop/scans ƒ'"        --> "cadintosh.png"end telltell application "AppleScript Editor"    set the clipboard to "cadintosh.png"end telltell current application    path to desktop as text        --> "Master:Users:thorstenlemke:Desktop:"    beep    path to desktop as text        --> "Master:Users:thorstenlemke:Desktop:"end telltell application "Finder"    set label index of alias "Master:Users:thorstenlemke:Desktop:scans ƒ:"to 2        --> 2end tellResult:2ThorstenVon: Robert Poland <rpoland@usa.net>Antworten an: <gcmac@yahoogroups.com>Datum: Mon, 30 Apr 2012 11:48:23 -0600An: <gcmac@yahoogroups.com>Betreff: Re: [gcmac] Folder Actions opening GraphicConverterThorsten,I have the following script attached to a folder on the desktop. Whenever thefolder is accessed or closed GraphicConverter in opened.on adding folder items to thisFolder after receiving AddedItems tell application "Finder" delay 1 set labelCount to (count of items of folder thisFolder) if labelCount > 7 then set labelCount to 7 as integer set label index of folder thisFolder to labelCount end tellend adding folder items toon removing folder items from thisFolder after losing RemovedItems tell application "Finder" delay 1 if items of thisFolder is {} then set label index of folder thisFolder to 0 else set labelCount to (count of items of folder thisFolder) if labelCount > 7 then set labelCount to 7 as integer set label index of folder thisFolder to labelCount end if end tellend removing folder items from Robert Poland - Fort Collins, CO
Post Reply