Nope. Not to my knowledge.
or is it something that can be added within Tasker?
Yes. In a multitude of various ways. That said, determining the condition to overwrite the variable value would be dictated solely by the process you interact with your device to determine a new value. Then translating that process into a series of conditions that results in overwriting the variable with the desired value.
Your main issue will be getting tasker to recognize the file path of the media playing, which MIGHT be possible if defined manually into tasker and some kind of regular expression applied regarding song, artist, album title and file path name. If not the case, maybe the plugin, media utilities, can do so.
Getting tasker to associate the correct file path to the media playing will be the biggest hurdle. Once you can do that you can re-set the desired variable to the new file path based on nearly any action.
Maybe something as simple as playing the same song twice in a row will make tasker re-write the desired variable to the song's file path.
Thanks for replying but I think you may be over thinking what I am trying to do. Let me clarify some...
I only want the variable value to change when I want it to. I am still wanting to go directly into Tasker to change the value. It has nothing to do with a current song playing, nor with one I played recently.
I would like to see the option to browse for a file, directly from the place I setup the variable within Tasker. When I browse and select the file, the filepath and filename would be auto filled as the value for the variable setting I am currently working on.
Does that make a little more sense?
Thanks for helping.
Butch
... really?!
This will make that EASY if I have a chance to play with that today!
Will also help me add some profile tasks to my %CLIP set profile! It should be a simple matter of adding, if %CLIP ~R */*.* then set %var to %CLIP (follow me on this OP?)
:-)
Thanks!
It's not quite what you want, but if you install something like the app !Share or ClipIntent, you'll get an extra menu option in your Share or SendTo menu. Then you can open any file explorer app you want, go to the dir listing, long click on the file or folder, select Share or SendTo and then select Copy filepath to clipboard.
I personally have not found a file explorer that allows for fast easy searches so I made my own with tasker. It would take some work but for what you want to do it might be worth it. You basically use a text edit box to input your search criteria and with every character you input the search is refined and listed in a menu. It works very fast and accurate .. let me know if you are interested in that approach....
Rich..
Rich,
let me know if you are interested in that approach....
I am!
But really more as a learning exercise so, there's no real need to go into it if you'd rather not.
> I am!
> But really more as a learning exercise so, there's no real need to go into it if you'd rather not.
I will see if I can pull it out of the project it is in. The project is for storing pics in folder names, but should be easy to adapt to what you are looking for...
As for your current problems with the copy/paste. Another approach could be to share the file. You should be able to use The plug in "Auto Share" to retrieve the file path from the share...
> > I am!
> > But really more as a learning exercise so, there's no real need to go into it if you'd rather not.
>
> I will see if I can pull it out of the project it is in. The project is for storing pics in folder names, but should be easy to adapt to what you are looking for...
BTW.. could you post a example of a file name of your mp3's and how you search for them. I am just curious if it is a short list that you just scroll through in one folder or do you use a folder hierarchy and look through several folders??
I've been playing around with that and no luck.
I imagine there HAS to be a way to use file magic to get this info without using clipboard... but cannot figure out how.
> You should be able to use The plug in "Auto Share" to retrieve the file path from the share...
>
> I've been playing around with that and no luck.
I just tried it and it worked on my device...
I have a moto droid 4 running 2.3.6. Rooted
Version 1.6u1m
>
> I imagine there HAS to be a way to use file magic to get this info without using clipboard... but cannot figure out how.
I think it is possible with file magic but it is a very very basic browser.
In fact, the received share toast flashed only contains the package name, and the app accessing the share.
However, in my autoshare settings I only have intercept enabled, not autoshare or command.
Should I be using something different?
>
> However, in my autoshare settings I only have intercept enabled, not autoshare or command.
>
> Should I be using something different?
Both command and autoshare worked for me, I did not try intercept ..
OK here is a example of what i was talking about..
1. Import file as project
2. Go to to tasks and manually run the "start" task
3. Input the file path of the folder containing the files to be searched ( this version will only search 1 folder IE it is not recursive ) your path should look similar to this..
/mnt/sdcard-ext/work files/A Work excel/
4. Hit the green check mark
5. Tap the blue text box in the upper right, Start typing what ever you think will be contained in the file name. The first 2 characters entered will display all files "starting" with those 2 characters. After the third character it will search for the string anywhere in the file name. The results are displayed in the menu on the left. You can scroll the menu.
6. Select the file you want..
Let me know if it works for you...
On Aug 15, 2013 10:38 PM, "Rich D" <ricp...@gmail.com> wrote:
>
> OK here is a example of what i was talking about..
Oops... the last file I posted contained alot of the original project. I thought i had deleted all of that out but it decided to go back in. Here is a simplified version... I hope..
>
> Whoa. Way easier to understand!
Yea... sorry bout that... I thought it would only export what is in the project but apparently tasker exports everything linked with it. I needed to actually delete all that stuff from tasker ..
The scene could use some work but it is just something quick I came up with..
Profile: Variable Set - CLIP ~ * (53)
Event: Variable Set [ Variable:%CLIP Value:* ]
Enter: Clip Check (25)
Alert, flash: Clipboard set
Does the alert flash?
It is like the bug interferes with Tasker being able to detect that %CLIP has been set or changed.
Any other suggestions?
Now, create a task with the only action, set clipboard to some value.
If tasker sets the clipboard, does it recognize the clipboard is set?
Or is there some other way you meant for me to change the clipboard using Tasker?
Set Clipboard is found under action, misc. Set Clipboard
Yep. Possible solution there!
I set it up and get an error. (how do I grab the text from the last toast message?)
Error says:
Code 3: java.lang.illegalstateexception:
beginbroadcast() called while already in a
broadcast
Thanks for your help so far though.
Butch
> At this point, I'm not looking for other options on how to do this (except for the ability to do it directly from within Tasker on the Variable Set page...)
From what I understand you would like to be able to set a file (mp3) name and path to a global variable for use in other tasks.
I still believe a simple scene / menu that lists your mp3's would be the best route. Every time I have used tasker to replace what other apps do, the tasker version is always much better and able to be customized for my use. I am not sure if you fully understand the way it would work and I realize you said you do not want other options but just to be clear the way this would work would be...
1. Tap tasker shortcut from your home screen.
2. This would show a menu Listing all of your mp3's, Sorted anyway you would like.
3. Tap on the file name you want And this will set the global variable for your mp3.
All that being said if you do not want to wait for the fix for the clipboard bug the next best thing or perhaps even better would be the "autoshare" add on. I think the advantage to using the share is that most if not all file browsers will do a share where as some might not let you copy the file name easily.
Rich..
Profile: Set Sound Var (51)State: Variable Value [ Name:%CLIP Op:Matches Regex Value:^/.*\.... ]Enter: Set Sound Vars (21)A1: Variable Set [ Name:%NOTIFY_SOUND1 To:%CLIP Do Maths:Off Append:Off ]A2: Flash [ Text:%NOTIFY_SOUND1 - - - %CLIP Long:On ]A3: Set Clipboard [ Text:XxX Add:Off ]A4: Flash [ Text:%NOTIFY_SOUND1 - - - %CLIP Long:On ]
Any suggestions about me needing to cycle the screen off/on to get Tasker to read that %CLIP has a value set?
Thanks,
Butch
> I tried the "autoshare" way, but the 4.3 bug still seems to kick in. That was the first time I played with autoshare, and I do like that. Have to play with that more later.
Well that disappointing ...
>
> I did look at your way of doing it the other day. I downloaded and imported it. I ran the start task, and I put in my input file path, which then it showed me the list of files, I put a * in for the list of files, and selected the one that I wanted, but then I was lost at that point. The file was highlighted, and I see a quit button, but I wasn't sure what I needed to do next, and I wasn't positive what variable it should have been assigned to either. Honestly, I gave up with it at that point as I considered it just to difficult to figure out. I'm definitely not an expert with Tasker, and your task is just too advanced for me to understand at this point to make it work for my needs. It looked very interesting, but I just couldn't understand enough of it.
Sorry about that... when I cleaned it up and re-posted it I did not fix the output. It should have just gave you a flash telling you a variable had been set.. It was only to give you a idea on how it would work. If all of your mp3's are located in one folder then it would be very easy to customize this for you.. just let me know if you are interested ..
Since I posted this I have been trying .... to get it to work recursively ( look in all folders in the given path) but I am having some problems so far.. so the recursive version is a ways of...... :(