One action effecting another action on a different page

Hi everyone…
I am racking my brains trying to remember if there was a way for one action to effect another actions output on a different page and I just cant remember if this was on someone else’s wish list or this is actually possible.
The action in question is WebYep and I am trying to combine a new 3rd party members only plugin.
This i what I need the action to do:
I have a folder action that creates and publishes the init code file. If I set one of the checkboxes within the folder action to be true I need all pages within that folder to have a certain bit of code added. Not sure if freeway allows this sort of functionality but if someone knows I would sure be grateful

Cheers Max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Max,

You can use fwFindAllActions(“com.action.name”) and then call any of an Action’s methods once found by using action.methodName()

Hope that’s useful,

Joe Billings
Managing Director
T: +44 1993 882588
E: email@hidden

Freeway: You create, it codes

On 13 Aug 2012, at 16:50, max email@hidden wrote:

Hi everyone…
I am racking my brains trying to remember if there was a way for one action to effect another actions output on a different page and I just cant remember if this was on someone else’s wish list or this is actually possible.
The action in question is WebYep and I am trying to combine a new 3rd party members only plugin.
This i what I need the action to do:
I have a folder action that creates and publishes the init code file. If I set one of the checkboxes within the folder action to be true I need all pages within that folder to have a certain bit of code added. Not sure if freeway allows this sort of functionality but if someone knows I would sure be grateful

Cheers Max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Joe
I have been looking to see if any of the actions I have installed has this method of effecting the output from one action with checkbox of another and I cant see any that uses this function.

is there some explanation anywhere or do you know of another action that has or uses this?

cheers Max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Max,

Take a look in the fwParametersCreated callback function in the Google Maps Action.

It’s using “this” to find all Actions with the same name as the current Action, you can just replace that with the name of the Action you’re looking for if you’re looking for something with a different name.

The number in the first argument is optional and specifies the type of Action it’s looking for:

0 = Object Action (aka a standalone Action)
1 = Page Action
2 = Item Action
3 = Library Action

The final argument is a boolean and will search through search children if set.

Hope this helps,

Joe


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Tim Plumb and Peter Gutbrod did some early work in this area, and there’s a whole project in ActionsForge about inter-action communication. ActionsForge - The Complete Repository of Freeway Actions

Walter

On Aug 31, 2012, at 7:26 AM, max wrote:

Hi Joe
I have been looking to see if any of the actions I have installed has this method of effecting the output from one action with checkbox of another and I cant see any that uses this function.

is there some explanation anywhere or do you know of another action that has or uses this?

cheers Max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If I recall correctly that was limited to controlling the interface of the target Actions. If you know the name of the functions or methods you want to call in the target Action then you can have full control over how it behaves - something that is both powerful and a bit scary.

One of the things that I encountered recently that falls outside of this is the ability to apply Actions programatically. I ended up duplicating the functionality of an Action in another rather than ask Freeway to apply the known Action to the item and set the paremeters as needed.
Regards,
Tim.

On 31 Aug 2012, at 15:35, Walter Lee Davis wrote:

Tim Plumb and Peter Gutbrod did some early work in this area


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Joe Walter and Tim

I do now remember the action master actions or at least looking at it… I think.
The actual function I was looking for is quite simple as both actions didn’t really need to interact with each other apart from: if a specific and unique check box in the folder action was active, then that would be be seen by the page action and allow raw code to be written into the page. that was it no user data fields or anything like that just purely an on off…

Anyway I am going to have a look at the Google Maps and see if I can see how that works or not as the case may be… :slight_smile:

max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 31 Aug 2012, at 17:29, max email@hidden wrote:

The actual function I was looking for is quite simple as both actions didn’t really need to interact with each other apart from: if a specific and unique check box in the folder action was active, then that would be be seen by the page action and allow raw code to be written into the page. that was it no user data fields or anything like that just purely an on off…

Is there only one Folder Action per document? If so, it becomes much simpler.

Joe


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi joe yes
the folder action is applied to the top folder and then depending if that action has a a specific check box applied then I need to output an extra bit of code in a webyep page action. What I am doing is adapting the webyep actions so I can incorporate a plugin thats been developed by vibralogic and for this to work I ned to add a specific bit of extra code in the page. anyway if there is a simpler way then i am all ears

all the best Max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try this (untested):

http://pastie.org/4647312

On 1 Sep 2012, at 18:36, max email@hidden wrote:

Hi joe yes
the folder action is applied to the top folder and then depending if that action has a a specific check box applied then I need to output an extra bit of code in a webyep page action. What I am doing is adapting the webyep actions so I can incorporate a plugin thats been developed by vibralogic and for this to work I ned to add a specific bit of extra code in the page. anyway if there is a simpler way then i am all ears

all the best Max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you want access to that value when the Action is created, when the parameters are refreshed, or when the Action is duplicated or copy/pasted then you should use it inside a function called fwParametersCreated. Otherwise it can go in any one of the publish-time functions.

Joe


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Joe
Finally had a bit of time this weekend to sit down and go through your suggestions/pointers and yep thats working perfectly.

Thanks again

max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options