Saturday, August 8, 2020

#1 2002-12-10 02:52:50 pm

Joe Bradfield
From:: CA, USA
Registered: 2002-12-06
Posts: 192

This one is for TJ


on open thefolder
   repeat with thisItem in thefolder
       createicon(thefolder) of me
   end repeat
end open

on run
   tell application "Finder"
       display dialog ¬
           "This is a droplet. Please drop a folder of files or a folder of folders of files on me." with icon 1 buttons {"Ok"} default button 1
   end tell
end run

on createicon(thefolder)
   tell application "Finder"
       set theseFolderItems to every item in thefolder
       repeat with thisItem in theseFolderItems
           tell application "X-Commands"
               create thumbnail icon for thisItem -- using application "x-commands"
           end tell
       end repeat
   end tell
end createicon

I used  your code from "Creator_ShopR_1.1" and "x-commands" to composite this script but i get an "the application is not runing error" any ideas

to anyone else I am trying to generate a lil script to create icons for a folder of items dragged on to it
-thx big_smile

Joe Bradfield

Filed under: Finder, XCommands



#2 2002-12-11 09:39:06 pm

T.J. Mahaffey
From:: Arkansas, USA
Registered: 2002-11-20
Posts: 238

Re: This one is for TJ

Sorry it's taken me a bit to get back to you on this one!

I've downloaded David's spiffy X-commands and run some tests on your code...

It works like a champ here! Are you sure you have the curren version of X-commands? (0.9.5)

One thing to note: X-commands is actually an invisible background app, not a traditional "scripting addition". So, you'll need to actually launch it before testing your code. Post again with further details if you're still stuck.




Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)