Applescript bug in hazel?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Applescript bug in hazel? Mon Jan 24, 2011 9:34 pm • by maxit
i use a tip from the forum and first run an applescript to set the folder and not the file.
then i run another applescript.

tell application "Finder"
set folder_list to name of folders of folder (theFile)

this does not work either
set folder_list to name of folders of folder ("Drive:folder:")

i just get an error beep and the rest of the applescript fails.
this runs fine outside of hazel.
any ideas?
maxit
 
Posts: 10
Joined: Wed Jun 09, 2010 5:36 pm

Re: Applescript bug in hazel? Mon Jan 24, 2011 9:53 pm • by maxit
i got this working as an external script with the changes below.

set a to theFile as string
set folder_list to name of folders of folder (a)
maxit
 
Posts: 10
Joined: Wed Jun 09, 2010 5:36 pm

Re: Applescript bug in hazel? Fri Jan 28, 2011 12:14 pm • by Mr_Noodle
Not sure if this was the cause of the problem but keep in mind that Hazel passes the file/folder in as an alias so you may need to convert it depending on how you want to use it.
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support