Tag Info

New answers tagged

0

Try the following: set cheat1 to the quoted form of text returned of (display dialog "Enter Cheat" default answer "99 Gold, super health, unlimited Grenades..") set newText to quoted form of "I am now adding a few test lines" do shell script "echo " & newText & " >> ~/Desktop/test.txt" do shell script "echo " & cheat1 & " ...


1

Here is a condensed and modified version of the script info in the link I gave you in the comments. You can save it as a plain text file, without an extension, and make it executable per info in the link, e.g. chmod +x filename. Place the script in a folder that's in your $PATH e.g.: /usr/local/bin/ This script sets both the created and modified date/time ...


2

Did you check hidden files? What about https://en.wikipedia.org/wiki/.DS_Store? :) Open terminal, go to that directory and type ls -alh. Then compare what you see in terminal and what Finder is showing.


3

Even apart from the main cause in this case (Finder adding extra hidden stuff, as empedocle says), different sizes for ZIPs of the same data doesn't indicate a problem, when the size difference is a fraction of a percent. Different ZIP implementations might have a different default compression level (tradeoff between CPU time and size saved), or just have ...


20

Zipping from the Finder adds a folder __MACOSX, invisible on Macs, that contains OS X resource forks like custom icons and such. From Wikipedia: The resource fork is a fork or section of a file on the Apple Mac OS operating system used to store structured data along with the unstructured data stored within the data fork. A resource fork stores ...


2

From Apple's Bundle Programming Guide Although bundles and packages are sometimes referred to interchangeably, they actually represent very distinct concepts: A package is any directory that the Finder presents to the user as if it were a single file. A bundle is a directory with a standardized hierarchical structure that holds executable code and ...


1

A package and a bundle have/have had similar structure. A package is a "file" that is operated on by the OSX Installer. These days packages have been flatten into an xar archives. Packages are also "files" created by some Apple applications, where the file is actually a directory with multiple supporting files. A bundle contains executable code, an ...


2

The file cannot be removed even by root because it has schg and sappnd flag. Try this: $ sudo chflags 0 file.txt $ sudo rm file.txt The first line clears the flags.



Top 50 recent answers are included