Embedded script

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

Moderator: Mr_Noodle

Embedded script Mon Feb 09, 2009 9:03 am • by alastor933
I was about to convert external scripts to embedded scripts when this question came up.

When I copy a rule with an embedded script, will that copy contain an indepent copy of the script? Or is it just a pointer?
Or put otherwise: when script of rule A is edited, will identical script of rule B change too?
alastor933
 
Posts: 53
Joined: Wed Mar 05, 2008 3:52 pm
Location: Utrecht, Netherlands

Re: Embedded script Tue Feb 10, 2009 6:37 pm • by Mr_Noodle
It is an independent copy. There was a bug before where it was linked but it has since been fixed (though I think some people would prefer it to work that way).
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Embedded script Wed Feb 11, 2009 3:26 am • by alastor933
Yes, I would like it to be a link : ).

Follow-up question: can I move an external script without breaking the link (which is what I was going to do, initially, before I thought of making it internal)?
alastor933
 
Posts: 53
Joined: Wed Mar 05, 2008 3:52 pm
Location: Utrecht, Netherlands

Re: Embedded script Wed Feb 11, 2009 1:52 pm • by Mr_Noodle
Hazel should be able to track external scripts as they are moved around. That said, it is possible to somehow break the link. It's like an alias so if do something that would break an alias, it will break Hazel's linkage as well.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Embedded script Wed Feb 11, 2009 4:02 pm • by alastor933
Thanks, I will try that, and not change to internal scripts.
alastor933
 
Posts: 53
Joined: Wed Mar 05, 2008 3:52 pm
Location: Utrecht, Netherlands


Return to Support