I am having trouble opening text and pdf files when I try to open them by referring to them by a variable.
I start with a Read File task that reads the first file(/sdcard/dcim/qa5/data/1.txt), which contains the second file's address (/sdcard/dcim/qa5/data/2.txt).
This goes To Var %Trial1.
When I then start an Open File task, by referring to the file to open as %Trial1, I get an "error: Open File: file not found: /sdcard/dcim/qa5/data/2.txt".
I can open the file if I specify the literal path (/sdcard/dcim/qa5/data/2.txt), but not be referring to it as a variable.
The reason I cannot do the latter routinely, is that the second file's name will repeatedly change.
I suspect I am making a simple mistake and would appreciate any help.
I am using a Samsung Galaxy 5, SM-G900A running Android 6.0.1.
Thanks
Dan DKNC
How is the 1st file being written. There might be an extraneous character interfering. What you want to do does work, so we have to figure out where the problem comes from.
Maybe you could export the task as "Description to Clipboard" then paste that on pastebin.com. The problem with just posting it here is the forum software will change "n" to emojis affecting readability. That can be worked around if you prefer.
Your new account won't be permitted to post links, but you could just edit out the pastebin.com part of the url.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Thanks for your reply.
Here is a little more detail:
Under Task Edit I have:
1. Read File
File
/sdcard/DCIM/qa5/Data/1.txt
To Var
%Trial1
IF
2. Open File
File
%Trial1
Mime Type
Optional
IF
-----------------------------
The error message I get is: "Error: Open File: file not found: /sdcard/dcim/qa5/data/2.txt
The text in the 1.txt file is: /sdcard/dcim/qa5/data/2.txt
The text in the 1.txt file is a simple text file saved in ASCII format.
I have left the Mime Type and If fields blank.
===================================================
Long press the task and it will be highlighted. Then in the 3-dot menu choose "export the description to clipboard". Share that as I mentioned above.
Also again, how is the text file written? On windows? By a script? Something else?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Following your insights, I reviewed the contents of the 1.txt file in notepad on Windows and found there was a word wrap/carriage return hidden at the end of the path text. Once I took that out, the task worked correctly. Thanks.
Dan DKNC
Related
Hi!
I was just wondering if it was possible to save the words you have added to the T9 dictionary. It would be nice to have a backup if you flash your Diamond often.
Sure is...
unzip the attached file copy paste to your Diamond.
Start using it
Ok.... i tried downloading the file but it cannot open the file... file error!!!!!
try this one...
try again. I try download it just now and i can open ok.
Sourceress said:
try this one...
Click to expand...
Click to collapse
Awesome dude.
Pretty much what I was looking for some time.
Now, is there a way to backup this whole list, so we can restore it after flashing a new ROM?
Thanks!
can, lah...
select text in T9MyWords > copy > paste into a text file > save the text file in a save location (e.g. Sync Folder "My Documents" or Internal Storage).
After flashing a new ROM: select text in the text file > copy > paste into T9MyWords.
Sourceress said:
select text in T9MyWords > copy > paste into a text file > save the text file in a save location (e.g. Sync Folder "My Documents" or Internal Storage).
After flashing a new ROM: select text in the text file > copy > paste into T9MyWords.
Click to expand...
Click to collapse
Sounds simple. Have ya tried it? Doesn't work bro. The text are placed line by line, not in a textbox.
Im thinking I could backup the following files:
\Windows\eT9Cdb.Cdb
\Windows\eT9Rudb.Rdb
Both of them contain words (and more) from the T9 list. Gonna do some reading up and see the significance of these files.
oops... I'm sorry. tweaking with more than one proggis at the moment....
BoogieCornejo has given following solution:
go to windows folder and save these 2 files. eT9Cdb.Cdb and eT9Rudb.Rdb. after hard reset rename the original files in windows folder to anything you want then copy your saved files to replace the renamed ones.start a message or any text document and add a word.you'll notice the words you stored from before the hard reset will still be there...
Olafson added one more file:
eT9Rudb.Rdb
eT9Cdb.Cdb
eT9AsDb.Adb
1) Copy files from windows to another location
2) Change attributes from read only to archive
3) Overwrite files in windows folder (Now the files are not in rom)
4) If are still read only you have to change again in Archive (Now you can because files are not in rom)
I did not try yet as I flashed my rom yesterday night
Sourceress, Thanks so much for this! I have been looking all over for a way to update my T9 dictionary to get rid of some annoying words! This exe is a mind saver!
Thanks really useful - why HTC doedsn't include this facility I've no idea!!
The program is simple but wonderful. I was looking for some ways to clear those words too.
I just downloaded the .exe and removed the word Im but for some reason when I use t9 it still uses Im when I type i then m instead of I'm with the capital I and apostrophe. Any ideas why?
Really a big big thanks for this posting. Fantastic program, awesome!!!
none of these two files works for me... that's strange!
Thanks a lot.It works fine. I look for something like that for a long time
so this is my first attempt on creating adw theme from the directions given here but here is the problem:
ok so to start off i have downloaded the tools in the android-sdk
set up eclipse and have all the resources the need.
i start a new android project and choose to start from existing source and choose the adw template, but then in the window on the top it says : '! The API level for the selected SDK target does not match the min SDK version'
Ignoring that caution and go ahead starting the project choosing Android 2.2 Build target.
Now the problem starts here, when i go in file explorer and navigate to src/x.x.x to rename the package to what i want it in the anroid manifest, it gives me errors in the main.java (the file inside src/x/x/x)
When i open the java file it has 'x' on some strings in the right area and has errors in Mains/Icon Adapter on 4 strings.
I try to rename the folders the readme tells me to, i right click on x.x.x and refractor>rename, write the name i want it to be but errors errors errors and thats only step 2 of the process! ive been trying for 2 hours now and cant get it to work, ill go insane, im new to developing so help will be appreciated a lot
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Thanks I'll try that, and I love your sense launcher, using it right now
Might make a theme based on it
EDIT: ok i looked into the strings and all of them had 1 thing in common is that they all had @overide before it started while other strings didnt, so i removed the @overide and voila, no errors!
JAguirre1231 said:
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
import package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Click to expand...
Click to collapse
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
bump. im in the same boat, trying to get any theme example to work, and having same issues.
webstar1 said:
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
Click to expand...
Click to collapse
Having the same problems . Can someone please help us, I spent much effort drawing my custom icons, and I'm not going to just give up yet.
I misspelled my first name when I registered my NC. So when I went to Settings -> Device Info -> About Your NOOKcolor, my name in the Owner field was misspelled. I was able to correct it online via BN.com but the NC wouldn't correct itself. It's a minor annoyance but wanted it corrected.
What you need:
Rooted NC with Superuser access
Root Explorer or equivalent
SQLite Editor or equivalent
What to do:
Use Root Explorer and navigate to /data/system to find the accounts.db file
Copy the file to the root of your SDCard (I was unable to make edits to the accounts.db file while it was located in /data/system)
Locate the copied file and open it using SQLite Editor
Open the "extras" table
CLICK AND HOLD the name field you want to edit. In my case it was the firstname field
Select "Edit Record"
Correct your name in the Value field
Click Save
You should receive a confirmation that the update was successful
Use the back button (soft key button on the bottom menu) to get back to Root Explorer
Copy the newly edited accounts.db file
Navigate back to /data/system
BEFORE YOU PASTE, rename the existing accounts.db file to accounts.db.old (just a precaution in case you don't want to lose the original file)
PASTE the newly edited accounts.db file into /data/system
NOTE: the r/w permissions are different between the original accounts.db.old file and the newly edited file Update the permissions of the newly edited file to match that of old file
Reboot
Once it's up, you should see your corrected name. I was able to successfully download a book using the NC Shop so all should be well.
** DISCLAIMER: Do at your own risk. I assume no responsibility if this doesn't work for you or causes issues with your NC. I can't imagine it will as it's a very minor database modification. ***
Yikes I goofed up my accounts.db file by editing it with the text editor (just didn't read the instructions carefully. Moving too fast.). Also didn't back up the file before editing (I know I'm an idiot ). Any idea how I can restore this file? Thanks.
Ok, I just managed to restore the file and all is ok, and my name is corrected. Next time I will read instructions better!
Phew! Glad to hear it worked out for you.
Sent from my rooted Nook Color using XDA App
I have a rooted NT, and i start to notice the owner/account name becomes "unavailable". I went to the location specified above, but couldn't find the entry. Would anybody happen to know how i can change it?
Thanks.
rvr350 said:
I have a rooted NT, and i start to notice the owner/account name becomes "unavailable". I went to the location specified above, but couldn't find the entry. Would anybody happen to know how i can change it?
Thanks.
Click to expand...
Click to collapse
This is the NC forum. You have a NT. Hop over to the NT forum and post question there.
What this does:
In the first two steps of the task, you can set the path to a folder containing all your zip files, and whether you want to overwrite existing extracted files.
It makes a folder called "extracted" inside the folder containing your zip files, and then extracts zip files into that folder.
File names containing special characters are handled automatically by this task.
Download the attached task, rename it to Unzip.tsk.xml and then import it into tasker.
This is very useful, how long did it take to make? 49 actions is a lot.
Xkinetism3 said:
This is very useful, how long did it take to make? 49 actions is a lot.
Click to expand...
Click to collapse
Sorry about the (extremely) late reply.
I don't remember how long it took, but it's nowhere near my longest tasks. This probably took up around 20 minutes. I'm not sure, though.
I made this one day when I wanted to extract 500+ zip files on my phone in one go, far from my computer.
Edit:
For something actually long made in Tasker, take a look at my OTA app for a custom ROM: https://drive.google.com/folderview?id=0B4q2Ez1yS1rKNVBIQU9KQmQtWEU
The tasker project containing the entire app is available in the "Source Code" folder. That tasker project is 400+ kb.
sh: <stdin>[1]: unzip: not found
Hi Sukarn, I'm a beginner in shell or any system language for that matter. When I try to run your XML, I'm getting the error, 'sh: <stdin>[1]: unzip: not found'... Did I do something wrong? I'm basically trying to include an unzip command in a Tasker factory app. Without manual intervention, the unzip will work for any Android mobile in which I install my APK?
Thanks,
Rajapriyan
Hi!
I want create a tasker profile to move the whatsapp media files on SD card, but I want move only files that are older then 1 month.
How can I do?
I've create a tasker profile based on this tutorial:
https://www.youtube.com/watch?v=h86EZcdOlVk
it works but now how can I move only files that are older then 1 month?
Another question.... if inside a folder there are other folders, but I don't want move also the subfolders, how can I do?
Ok, for the second question the solution is simple: in List File action is enough add *.* in match
I'm still looking for a solution for the first question
If you are rooted, you can use the following command in tasker shell action;
find /FULL/PATH/TO/DIRECTORY/ -maxdepth 1 -type f -mtime +30
This uses the built-in find command.
The path must be defined from the point of view of root, so starting from / (e.g. to the download directory on the sdcard it would be /sdcard/Download/ - note the trailing slash)
max depth of 1 to not enter subdirectories
-type f defines look only for files
-mtime +30 modify date 30 days earlier than now.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers