Passing variable / token to applescript

New to Hazel (technically longtime returning user), so hope this isn't too stupid a question.
I'd like to be able to pass a variable / token to Applescript to use.
My particular use case is in importing images into Aperture where I may not know the Project name in advance (or it even exists). This doesn't seem possible with the regular 'import into Aperture' command, so my thinking is to hand off to Applescript, passing it the variable (a combo of a piece of the filename and date), then have it do the creation and import.
Is this possible?
I've also set up a script that allows me to pass text input to hazel for use in processing - is there an easier way of doing this? (e.g. when sorting images, it asks for a freeform text 'type', then sorts into folders based on this).
Thanks
I'd like to be able to pass a variable / token to Applescript to use.
My particular use case is in importing images into Aperture where I may not know the Project name in advance (or it even exists). This doesn't seem possible with the regular 'import into Aperture' command, so my thinking is to hand off to Applescript, passing it the variable (a combo of a piece of the filename and date), then have it do the creation and import.
Is this possible?
I've also set up a script that allows me to pass text input to hazel for use in processing - is there an easier way of doing this? (e.g. when sorting images, it asks for a freeform text 'type', then sorts into folders based on this).
Thanks