Is there a way to make a folder appear as a file (package)?
I've downloaded a theme (.thm) file that I'd like to upload to my phone. However, when it was decompressed by 10.4, the file appeared as a folder with an extension. Inside of the folder are some gifs and an xml file. How can I make this appear as a file instead of a folder?
Comments
Originally posted by Keda
I've downloaded a theme (.thm) file that I'd like to upload to my phone. However, when it was decompressed by 10.4, the file appeared as a folder with an extension. Inside of the folder are some gifs and an xml file. How can I make this appear as a file instead of a folder?
Add ".app" to the end of the folder name. Presto.
Originally posted by Keda
I've downloaded a theme (.thm) file that I'd like to upload to my phone. However, when it was decompressed by 10.4, the file appeared as a folder with an extension. Inside of the folder are some gifs and an xml file. How can I make this appear as a file instead of a folder?
Silly thought but... maybe it's supposed to look like that. Have you tried installing it to your phone as-is?
The .app thing did indeed work. However, I am stuck w/the .app extension and I need to upload the .thm. Once the file is on the phone, I have no way to rename it, using Bluetooth File Exchnage.
The themes that came w/my phone are all .thm files and look like single files (packages?). Is this one of those things that Super Get Info (edit type and creator) might be able to help with?
Thanks again.
So, what you want to do is type the following into Terminal:
tar -cf filename.thm
... and drag the folder with all those files into the Terminal window. NOTE: you need a space after the .thm so it knows that filename is seperate from where the folder is. And "filename" should be the name of the theme.
You should then be able to install the resulting .thm file onto your phone.
Hope that works!
tar -cf Coldhearted.thm /Users/sean/Desktop/Coldhearted.thm/
tar: Removing leading `/' from member names
I am completely incompetent in the terminal, so please forgive my ignorance.
BTW, Kesh, I just noticed that you live in Waipahu. I went to school at St. Joseph's when I lived in HI. I still have some friends there.
It seems that .thm is a sony Ericsson Theme file. So, I think I need to decompress the .tar, then get the directory to show up as a single file, w/the .thm extension. Hmmmm.
Originally posted by Keda
I swapped the extension to '.thm' from '.tar.' This appeared to do the right thing, but the phone does not recognize the theme.
It seems that .thm is a sony Ericsson Theme file. So, I think I need to decompress the .tar, then get the directory to show up as a single file, w/the .thm extension. Hmmmm.
Okay, wait, wait.
When you download the file, before it gets decompressed, does it end in ".thm" or ".tar"? If it's the former, then just don't decompress it. If it's the latter, it's a bit more tricky.
Originally posted by Keda
When I DL'd the file, it ends in .tar. After decompression, it ends in .thm.
Hm, okay. So you decompress the .tar, and it turns into a folder that ends in .thm full of files? Ick.
Alright, I'll have to read up on this some more. It might help if you posted what kind of phone you're using, so I can research how this is supposed to work.
Yep, thats what happens...it decompresses and then looks like a folder.
I have an Ericsson T637.
Originally posted by Keda
Thanks for the help.
Yep, thats what happens...it decompresses and then looks like a folder.
I have an Ericsson T637.
Does the download link say ".thm" or ".tar"?
Safari tends to change file extensions to the reported MIME type, so if my blah.c file has the MIME type text/plain, Safari will download it as blah.c.txt (or maybe just blah.txt... I don't remember which). I wouldn't be surprised if the server you're downloading the file from is reporting that the MIME type is "application/x-tar", which makes Safari think the file should end in .tar.
So here's my suggestion: Download the file again but this time, don't decompress it. Instead, just change the filename from *.tar to *.thm.
HTH.
See if you get a .thm file that way, and let us know.
Also, I poked around on the cmd line w/ tar and found a command that shows the content of a .tar archive. To no surprise, the contents are listed as the folder contents of the decompressed tar.
Unfortunately, the site that I'm getting this theme from does not have a direct link to the file, so I cannot see what is actually happening--I mean that when I mouse over the link, the status bad doesn't mention a file, but some kind of Db query.
Anyway, I've found the solution. As I suspected, the .thm file is just a tarball of the theme files themselves, and not the entire folder they're in.
In other words, what you need to do is two commands. First, in Terminal, type "cd " (including the space after it), then drag your theme folder to the Terminal window and press Return. That should change you into the folder itself, as an 'ls' command would show the theme files. Then, you type:
tar -cvf ../theme.thm *
This will tarball all the theme files into a .thm file (name it appropriately for the theme!), and drop the new theme file into the theme folder's parent directory. So, if you have the folder on your Desktop, the theme file will appear in your User folder.
For more info (and a link the the MacOS X version of Sony's Theme Creator), check out this site.
Hope that helps!
a) temporarily switching off "Open 'safe' files after downloading" in Safari
b) use a different browser (Firefox)
Originally posted by ZO
what about
a) temporarily switching off "Open 'safe' files after downloading" in Safari
b) use a different browser (Firefox)
Er, he already mentioned that it's a .tar file that gets downloaded. Unless Safari is doing something funky to the file before he sees it, that's not going help. Whenever he tries to untar the file, it's going to get the same exact results as if Safari did it automatically.
That worked perfectly. How did you find that?
Also, thanks for the link. I think I'm going to make my own theme now that I can upload it.
Thanks again!
Originally posted by Keda
Kesh...Thanks!
That worked perfectly. How did you find that?
You're welcome! And you'll find that Google is your friend. I did a few different searches, until I finally found that link. Glad it worked out.