Allow attachments - other that just Scheduler

Allow attachments - other that just Scheduler

I have a script set to run in Scheduler to send an email with a view PDF attachment.  I am trying to now make a funtion to do the same thing (rather than just making it scheduled).

it is telling me: "Attachment is only applicable for scheduler actions"

Is there a reason for this limitation?  Does not make sense to me.