I can't delete the Minecraft.null - mobile

I wanted to delete a file that is .null
app:com.mojang.minecraftpe
package:com.mojang.minecraftpe
Launcher:null
But I can't because it doesn't appear to erase how to delete this file? And if so, is it possible on mobile?

Related

How can I tell my AppleScript to ignore renamed files?

I put together a simple AppleScript that automatically opens new files, that are added to a specific folder. This works great! Problem is, if I rename the new file, then automator runs and re-opens the document. The naming convention is limited by the scanner, but is:
2022-12-21-191532
Year-Month-Date "-"
Random number (timestamp maybe?)
".pdf"
Is there a way to make my script only run on new files and ignore files that are renamed?
The settings are "AppleScript" & "on adding"
on adding folder items to this_folder after receiving added_items
delay 30
try
tell application "Finder"
--get the name of the folder
set the folder_name to the name of this_folder
--go to the desktop
activate
open this_folder
open added_items
reveal the added_items
end tell
end try
end adding folder items to
I tried googling this, but all I keep finding are examples on how to automate renaming files.
Here is an AppleScript solution which you may find useful.
This following AppleScript code will display a dialog allowing you to enter a new file name to rename your currently selected file, in Finder, to the new name. Before it renames the file, it will temporally disable all Folder Actions, then renames the file, then re-enables your Folder Actions. This way, simply renaming your file wont trigger your Folder Actions to run.
tell application "Finder"
if (count of (get selection)) ≠ 1 then
tell current application
activate
display dialog "Please Make Sure Only One File Is Selected" buttons ¬
{"OK"} default button "OK" giving up after 4
end tell
return
else
set nameOfFile to name of item 1 of (get selection)
tell current application
activate
set newName to text returned of ¬
(display dialog "Rename file " & nameOfFile & ¬
" to..." default answer "New File Name" buttons ¬
{"Cancel", "OK"} default button 2 cancel button 1 with icon 1)
end tell
set renameThisFile to item 1 of (selection as alias list)
end if
end tell
tell application "System Events"
if folder actions enabled then set folder actions enabled to false
delay 0.1
set name of renameThisFile to newName
delay 0.1
if not folder actions enabled then set folder actions enabled to true
end tell
What you could do is take the code from above, then in Automator create a new Quick Action, add a Run AppleScript command to the workflow and insert the AppleScript code.
After you name and save your new Automator Quick Action, you can then shoot over to System Preferences/Settings and assign it a keyboard shortcut.
Now anytime you are in Finder, you can rename your currently selected file with your new keyboard shortcut and you will not trigger your Folder Actions.
I have a Folder Action that automatically adds the tag "Aquarium" to any item added to this one specific folder. This following animation demonstrates me first renaming "file 1.txt" to "file.txt" in Finder (the normal way). As you can see, simply remaining that file did trigger the folder action which automatically added the tag to the renamed file. Then, I used my new keyboard shortcut to rename the selected file "file 2.txt" to "xxx" in Finder, without triggering the Folder Action to add the tag to the file after renaming it.

How do I prevent VS Code from trying to save all unsaved files on hotkey save command and save only the current one?

I have a tendency to have multiple unsaved notes and code segments open intentionally in VS Code. I don't want to save them. This is just a holding place as I work on stuff and then I want it to go away.
Currently, when I go to save a new file I want to keep while have several others I don't want to keep, it goes through a list of all of them and tries to save them each one at a time. I don't want that. I just want to save the file in the current viewport.
The hotkey I use is Command + S (which is the default "Save" hotkey on Mac OS X). Note that in VS Code's menu, it states that the "Save All" hotkey is Option + Command + S.
Is there a way to have it ignore the other unsaved files when saving the current one?
I know this is too late, but it might help other people.
To save all files and don't want VS code to ask to save completely unsaved files, you can use the below keyboard shortcut.
File.Save All Files (workbench.action.files.saveFiles)
This will only save previously saved files.
Hope this helps.

What is a good way to create a file using ANT and overwrite if file exists?

I need to create a file with ANT and overwrite the file if it already exists.
<touch file="myfile.txt"/>
can be used to create the file but it won't overwrite if the file exists already.
One approach to achieving what I want is
<touch file="mytempfile.txt"/>
<move file="mytempfile.txt" tofile="myfile.txt"/>
but I wanted to know if there was a better way to do this maybe a single ant task.

How to update an existing .po file with a newly generated .pot file?

Cake version is 2.x. I have extracted all the texts inside __ function with ./Console/cake i18n extract command, moved the default.pot file into app/Locale/[iso3]/LC_MESSAGES/default.po and translated it to corresponding language. Everything is working fine.
After some time I have added some new functionality into the site and I need to add those messages into the po file. However if I use the same command it will create a new pot and I have to either manually merge them or replace with new po file and copy/paste the translations - both are too much manual work, because I have a few thousand lines of text.
Is there any way to tell cake update my po file adding only messages that does not exist in there ?
Thanks
Download PoEdit. It has an option to update your PO file from an existing pot file. From the menu go to Catalog -> Update from POT file.
So you will create your a new POT file and then update your PO file. PoEdit will update the PO file with the new values and I think it also removes any unnecessary ones.
PS: It would be wise before making any move to keep a backup.

How do I create multiple entries in Jabref from bibtex data?

Suppose I have bibtex data for, say, 10 articles. Is there a way to, within jabref, create 10 entries from this?
A solution is to just open the .bib file and paste the data in.
Select the text that forms the BibTex source of the multiple data entries and drag this into the library view of JabRef. You could probably drag all the files in, however I have not tested this.
alt text http://inverse.seednet.eu/snaps/jvvuow.png
go to File, Append Database. then browse in to bibtex files folder, you can select multiple files in a row, then click ok, if you have 20 bibtex or txt files, they will be all loaded to one bib file. It was great, solved my problem.
I often get BibTeX source code from citeulike.org, and I copy/paste this BibTeX source directly into JabRef by:
Menu: BibTex -> New Entry (Ctrl^N, or the green + button)
select a random type; I typically just pick Article
Down the bottom, in the new edit view, select the BibTeX source tab
Replace the BibTeX source in that tab, with that of one paper
And repeat this for all papers.
(OT: also, make sure to check the Web search menu.)

Resources