Page 1 of 1

Applescript bug in hazel?

PostPosted: 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?

Re: Applescript bug in hazel?

PostPosted: 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)

Re: Applescript bug in hazel?

PostPosted: 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.