Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Easy conversion of multiple Safari .webloc to PC .url files Internet
Looking for a convenient way to convert from .webloc files to cross-platform .url files, I was reading this hint. But all the suggestions involved opening the .webloc file in Safari to get hold of the actual URL. Doing so however, is either very time consuming (especially if you have many .webloc files) or simply impossible if you're working off-line. The reason for using Safari, I realized, is that the URL is stored in the resource fork of the .webloc file (Apple, you were supposed to phase out resource forks!) and is not easy to get at. Luckily, Apple included a little gem in its Developer Tools, DeRez, which displays resource information as raw text in this format:

$ DeRez -e -only 'url ' macosxhints.webloc
data 'url ' (256, "macosxhints - Get the mo#11F5AF") {
  $"6874 7470 3A2F 2F77 7777 2E6D 6163 6F73"    /* http://www.macos */
  $"7868 696E 7473 2E63 6F6D 2F"                /* xhints.com/ */
};
The following AppleScript application lets you drag and drop any number of .webloc files over its icon and converts them to cross-platform .url files.

This script does three things for each file:
  1. Extracts the URL from the .webloc file's resource fork
  2. Writes URL to the file's data fork
  3. Renames the file
Here's the script:
property devToolsPath : "/Developer/Tools/" -- path to free Apple Developer Tools

on open draggedFiles
  local theFile, weblocPath, urlPath, theURL, cmd
  repeat with theFile in draggedFiles
    if (theFile as string) ends with ".webloc" then
      -- get full paths
      set weblocPath to quoted form of POSIX path of theFile
      set urlPath to text 1 thru -9 of weblocPath & ".url'"
      -- 1) get URL from .webloc file
      set cmd to devToolsPath & "DeRez -e -only 'url ' " & weblocPath & 
        " | grep '\\/\\* .* \\*\\/' | sed 's/^.*\\/\\* //;s/ \\*\\/$//' | tr -d '\\n'"
      set theURL to do shell script cmd
      if theURL begins with "http" then
        -- 2) write URL to file
        set cmd to "echo '[InternetShortcut]" & (ASCII character 10) & 
          "URL=" & theURL & "' > " & weblocPath
        do shell script cmd
        -- 3) rename file using MvMac now that we have Developer Tools anyway
        set cmd to devToolsPath & "MvMac " & weblocPath & " " & urlPath
        do shell script cmd
      end if
    end if
  end repeat
end open
The script conserves the resource fork, as it writes to the data fork and renames the file. When copying the file to a Windows user, the resource fork is lost but the plain file contains all the information needed by the browser. The script could easily be rewritten to get rid of the resource fork by simply writing the data to the .url path instead of to the .webloc path and deleting the .webloc file instead of renaming it.

The output from the DeRez command is piped to grep which pipes all lines containing "/* [any text] */" to sed which extracts the [any text] between the comment marks and pipes the text to tr to get rid of the newlines. This may be optimized further, but performance isn't really an issue here.

I'm using MvMac (Dev Tools required, which you need anyway for DeRez) to rename the file, but I'm sure there's a Finder command for this as well. However, I'm not really an AppleScript programmer, so I do most of my stuff in Terminal's command line interface (I have a shell script that does all of the above if anybody's interested).
    •    
  • Currently 2.80 / 5
  You rated: 3 / 5 (5 votes cast)
 
[55,510 views]  

Easy conversion of multiple Safari .webloc to PC .url files | 30 comments | Create New Account
Click here to return to the 'Easy conversion of multiple Safari .webloc to PC .url files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: fds on Jul 30, '04 10:33:48AM

Being a Terminal guy myself, here's a little tidbit I think you'll appreciate:
there's an easy way to get to the resource fork of a file with any of the traditional UNIX tools by appending /rsrc to the file name.

eg. you can do

cat test.webloc/rsrc

Or you could use grep or anything you fancy on those pesky resource forks.

This way you should be able to avoid the use of DeRez.



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: gdsimms on Jul 30, '04 12:53:05PM

Holy smokes, that rocks. You can even edit it as a file with an editor.



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: _merlin on Jul 30, '04 10:34:37PM

Be careful if you do that - resource forks have to follow a strict format, or else they just plain don't work. And they're binary, not ASCII files.



[ Reply to This | # ]
You guys are just great!
Authored by: mael on Jul 30, '04 11:05:01AM
I love the shell, unfortunately I'll usually don't know about its features. Hints like these (the fact that webloc's save their data in resource forks and the fact that you can see this with cat /rsrc) make my day.

So I can now script a converter for synchronizing bookmarks between my mac, the pc and the solaris box. jipiiiee!

Instead of many different commands (grep, tr, sed) I'd go for using as little as possible. one part of osteslag's version could be reduced to


<dev_tools_path>/DeRez -e -only "url "  <inster_file_here> | sed -e 's/.*\/\* \(.*\) \*\//\1/' | sed -e :a -e '$!N; s/\n//; ta' -e 's/^.*{\(.*\)};/\1/'
Unfortunately I don't find clear "field boundaries" in the cat /rsrc-output, which I'd prefer so as not to be dependent on the Dev Tools (which are not on production machines...)

Any idea?

[ Reply to This | # ]

Works now without DeRez
Authored by: mael on Jul 30, '04 11:40:53AM
Found it.

cat <insert_filename>.webloc/rsrc | tr -d "\000" | sed 's/.*\(http:.*\).http:.*/\1/'

Gotta love shellscripts... Power in your hands...

[ Reply to This | # ]

Works now without DeRez
Authored by: sjk on Jul 30, '04 09:47:28PM
I've been using this:

strings site.webloc/rsrc | grep http | sed 's/^.//' | head -1



[ Reply to This | # ]
Works now without DeRez
Authored by: juanfc on Jul 31, '04 09:19:34AM

That eats the 'h' from the 'http://....' leaving 'ttp://..'

:(

---
---
juan



[ Reply to This | # ]
Works now without DeRez
Authored by: juanfc on Jul 31, '04 09:24:44AM
Why

| sed 's/^.//'
drop it out and it ought to work better:

strings $1.webloc/rsrc | grep http | head -1

---
---
juan

[ Reply to This | # ]

.webloc URL extraction
Authored by: sjk on Aug 01, '04 10:48:06PM

Did that to strip off the one random character prepended to "http://..." that 99% of my .webloc resource files have when I've run 'em thru strings and was too lazy to write the one-liner to handle the 1% exception that don't. I'll fix it later ...



[ Reply to This | # ]
.webloc URL extraction
Authored by: sjk on Aug 01, '04 11:37:55PM
First revision:

strings ${1}.webloc/rsrc | grep http | sed '/^.http/s//http/' | head -1

TODO:
Generalize for non-http/https URL schemes.
Optimize to eliminate grep and head.

[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: fm on Jul 30, '04 11:15:48AM

There is no need to use a DeRez in a do shell script command to get the URL stored in a webloc file. The two lines after the comment marked as "1)" can be replaced with this:

tell app "Finder" to set theUrl to theFile's location



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: gdsimms on Jul 30, '04 01:15:42PM

Now that I know the /*/rsrc trick, I'm considering hunting down all folder aliases deep in my home directory tree and replacing them with symbolic links, so that they work in the finder AND on the command line. Is there any reason NOT to do this?



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: paulrob on Jul 30, '04 02:05:28PM

In 10.3, an alias will point to the correct file/folder even if the file/folder is renamed/moved. I'm pretty sure, you will lose this feature with symlinks.



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: Murphy on Jul 31, '04 08:12:37AM

Aliases still work when you rename or move the original file. Symlinks rely on the path to the file, so when it's renamed or moved, the link won't work anymore.



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: Fofer on Jul 31, '04 12:51:42AM

This was covered (somewhat differently) back in January:
http://www.macosxhints.com/article.php?story=20040111200114634



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: Fofer on Jul 31, '04 12:53:01AM

D'oh! And upon further inspection, I see the original hint referenced the very same article.

Ignore me, please.



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: bluehz on Jul 31, '04 03:52:08PM
This works for me - can convert multiple files.
#!/bin/sh

if [ $# -lt 1 ]; then
echo << EOF "
Usage: `basename $0` "file1.webloc" "file2.webloc" ...

       Converts Mac style web location files into
       PC style internet shortcut files.
        
       Can convert multiple files listed on command line.
       Filenames with spaces must be quoted.
       
       ex: convert all .webloc files in given directory 
           to .url files
           
           `basename $0` *
"
EOF
fi

for i in "$@"
do
webloc_name=(`strings "$i/rsrc" | grep http | sed 's/^.//' | head -1`)
url_name="`echo "$i" | sed 's/.webloc/.url/g'`"
url="`strings "$i"/rsrc | grep http | sed 's/^.//' | head -1`"

cat << EOF >$url_name
[InternetShortcut]
URL=$url
EOF

echo "Conversion completed and saved as:"
echo "       $url_name"
echo ""
shift
done


[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: fsb on Sep 06, '05 07:55:16PM
Here's a modified version that makes an .html file instead, which redirects to the URL when opened. This conforms to the "HTML 4.01 Transitional" standard and should work as a web shortcut for any browser on any platform.

#!/bin/sh
# Easy conversion of multiple Safari .webloc to universal .html 
# redirection files which should work with any browser.

if [ $# -lt 1 ]; then
echo << EOF "
Usage: `basename $0` "file1.webloc" "file2.webloc" ...

       Converts Mac style web location files into
       HTML files which redirect to that web location.
        
       Can convert multiple files listed on command line.
       Filenames with spaces must be quoted.
       
       ex: convert all .webloc files in given directory 
           to .html files
           
           `basename $0` *
"
EOF
fi

for i in "$@"
do
webloc_name=(`strings "$i/rsrc" | grep http | sed 's/^.//' | head -1`)
html_name="`echo "$i" | sed 's/.webloc/.html/g'`"
url="`strings "$i"/rsrc | grep http | sed 's/^.//' | head -1`"

cat << EOF >$html_name
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="REFRESH" CONTENT="0; $url">
<TITLE>Transferring to $url...</TITLE>
</HEAD>
<BODY>
<P ALIGN="CENTER">
Transferring to <A 
HREF="$url">$url</A>  
<BR><BR>
Click the link if nothing seems to be happening.
</P>
</BODY>
</HTML>
EOF

echo "Conversion completed and saved as:"
echo "       $html_name"
echo ""
shift
done


[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: amitjain on May 05, '06 03:48:33AM

As i am a new user so please ignore my mistakes.
Problem...
I have used this code but the resultant .url file made by running this is:
1.when i run the file through shell script the file does not open on safari.
2.when i run the file through applescript the converted file has the url like this:
ttp://www.cnn.com i.e. h is missing. ihave checked the code thouroghly but unable to find the mistake.
please try to solve it.
Thankyou



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: UberFu on Aug 12, '04 03:07:19PM

I have 20 years of Mac / PC experience and very limited exposure to unix [except in the lsat few years with OS X] - so I feel like a school kid still sometimes with the unix speak_

But I suppose I'm confused by this thread_ I guess all that info would work if you're actually physically moving the pulled down URLs [that came from SAFARI and file-sharing them over to a PC box with a some acrid flavor of windoze or maybe even going to a different cut of unix or linux_ Then it seems all of that stuff would apply - right ?

But if you're staying in platform and merely using a different browser other than SAFARI - IE - OPERA - a variation of Mozilla and so on - all I ever do is either open up the browser and drag the .webloc file directly into an open window and it loads or if I have several [which is most times the case] then I'll drop them into a dedicated folder as I'm tracking along - then when I'm ready to go back thru them I select all - and change the default application for opening them from SAFARI to what ever browser I'm in the mood to use at the time_

Unless there's something I'm missing from reading thru this thread_

- UberFu



[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: OrbitalDescent on Dec 12, '04 08:32:50PM

for those of you who are on cross platforms, I have just finished a program for Windows that can convert .webloc files to .url files. This might be useful for those who arent well versed in programming on a mac. I came up with a spiffy name, "Weblocutus" and posted it on my ftp space. Give it a try and let me know what you think.

http://home.comcast.net/~orbitaldescent/weblocutus



[ Reply to This | # ]
Desktop Folder Action - Convert Safari .webloc to PC .url files
Authored by: anastas on Dec 24, '04 03:58:45PM
I spliced together this script from those found on this hint with a tutorial found on apple.com (see references in script) that will automatically convert .webloc files to .url files when dragged to the desktop.

Copy the code below into a new script (using Script Editor), for reference we will call it convert_webloc.scpt

I placed the following .scpt file (convert_webloc.scpt) into COMPUTER NAME > Library > Scripts > Folder Action Scripts, but you could obviously place it anywhere.

Then attached the script as a folder action... right-click (or cntrl + click) on the Desktop folder in your Home directory and select "Attach a Folder Action...". Select the script file (convert_webloc.scpt) and you are done!

property devToolsPath : "/Developer/Tools/" -- path to free Apple Developer Tools

-- source: http://www.apple.com/applescript/folderactions/05.html
on adding folder items to this_folder after receiving these_items
	tell application "Finder"
		set this_name to the name of this_folder
	end tell
	
	repeat with i from 1 to number of items in these_items
		set this_item to item i of these_items
		set the item_info to info for this_item
		
		-- cont. from http://www.macosxhints.com/article.php?story=20040728185233128 (osteslag)
		if (this_item as string) ends with ".webloc" then
			-- get full paths
			set weblocPath to quoted form of POSIX path of this_item
			set urlPath to text 1 thru -9 of weblocPath & ".url'"
			-- 1) get URL from .webloc file
			set cmd to devToolsPath & "DeRez -e -only 'url ' " & weblocPath & 
				" | grep '\/\* .* \*\/' | sed 's/^.*\/\* //;s/ \*\/$//' | tr -d '\n'"
			set theURL to do shell script cmd
			if theURL begins with "http" then
				-- 2) write URL to file
				set cmd to "echo '[InternetShortcut]" & (ASCII character 10) & 
					"URL=" & theURL & "' > " & weblocPath
				do shell script cmd
				-- 3) rename file using MvMac now that we have Developer Tools anyway
				set cmd to devToolsPath & "MvMac " & weblocPath & " " & urlPath
				do shell script cmd
			end if
		end if
		
	end repeat
	
end adding folder items to


[ Reply to This | # ]
Desktop Folder Action - Convert Safari .webloc to PC .url files
Authored by: olegyk on Apr 17, '06 02:55:03AM
It is also possible to obtain the URL of a Loc file (having class internet location file) with the "location" property.

That will avoid using the DeRez utility.

Also instead of do shell script for writing to the new file, it can be done with "open for access file" and write ....

[ Reply to This | # ]

Desktop Folder Action - Convert Safari .webloc to PC .url files
Authored by: glitch44 on Apr 01, '07 11:14:55AM


I get "Syntax Error - Expected """ but found unknown token" when I try to run this script. Did I do something wrong?

New to applescript...



[ Reply to This | # ]
Desktop Folder Action - Convert Safari .webloc to PC .url files
Authored by: klar on Jul 23, '07 05:00:11PM

I almost didn't respond because this website forced me to register in order to leave a reply, but I did, and then had to navigate back to this page 3 times.


Anyway, the problem is insufficient quoting on the grep line, just use the version from the original post the backslashes should all be in pairs (awwww)


set cmd to devToolsPath & "DeRez -e -only 'url ' " & weblocPath &
" | grep '\\/\\* .* \\*\\/' | sed 's/^.*\\/\\* //;s/ \\*\\/$//' | tr -d '\\n'"



[ Reply to This | # ]
The faster way of conversion of multiple Safari .webloc to .url files
Authored by: juanfc on Mar 12, '08 02:03:25AM
This is the Perl way, and then faster one. Easy to change and to read and very fast.

#!/usr/bin/env perl
# juanfc 2008-03-04
# 
use warnings;
use strict;

for my $arg (@ARGV) {
    open my $source, "strings '$arg/rsrc' |" or die "'$arg' not open: $!";

    my $s="[InternetShortcut]\r\nURL=";
    my ($urlname, $fname);
    my $ln = 0;
    my $already_got = 0;
    while (<$source>) {
        ++$ln;
        chomp;
        if (m|^.http://|) {
            if (!$already_got) {
                $s .= substr($_, 1) . "\r\n";
                $already_got = 1;
            }
        } elsif ($already_got) {
            $urlname = $_;
            last;
        }
    }

    close $source;

    if ($urlname and $urlname ne "drag") {
        $fname = $urlname . ".url";
    } else {
        $fname = $arg . ".url";
    }

    open my $dest, ">$fname" or die "Not able to create '$fname': $1";
    print $dest $s;
    close $dest;
}

---
---
juan

[ Reply to This | # ]

Modified version allows for processing folders
Authored by: ghaskins on Feb 03, '09 07:09:34AM
Instead of using bookmarks, my wife saves links in a folder hierarchy on the hard disk, which she consequently wanted to access on our Windows machine, so I created a modified version that will accept any combination of files/folders and convert all .webloc files it finds into .url files. I'm not an Applescript expert, but it was fairly simple to extend the original script to allow for this use. I also integrated fm's comment to remove the dependency on Developer Tools.

on open draggedItems
	global itemsConverted
	set itemsConverted to 0
	repeat with theItem in draggedItems
		my convertAnyWeblocs(theItem)
	end repeat
	display dialog (itemsConverted as string) & " Mac .webloc links converted to standard .url links"
end open

on convertAnyWeblocs(theItem)
	tell application "Finder"
		local fileType
		try
			set fileType to file type of theItem
		on error
			set fileType to "folder"
		end try
		
		if fileType is "folder" then
			set childItems to (every item of theItem)
			repeat with childItem in childItems
				my convertAnyWeblocs(childItem)
			end repeat
		else
			my convertFile(theItem)
		end if
	end tell
end convertAnyWeblocs

on convertFile(theFile)
	local weblocPath, urlPath, theURL, cmd
	global itemsConverted
	
	if (theFile as string) ends with ".webloc" then
		
		set weblocPath to quoted form of the POSIX path of (theFile as alias)
		set urlPath to text 1 thru -9 of weblocPath & ".url'"
		
		-- 1) get URL from .webloc file
		tell application "Finder" to set theURL to theFile's location
		if theURL begins with "http" then
			-- 2) write URL to new .url file
			set cmd to "echo '[InternetShortcut]" & (ASCII character 10) & 
				"URL=" & theURL & "' > " & urlPath
			do shell script cmd
			-- 3) delete original .webloc file, be sure to backup first
			set cmd to "rm  " & weblocPath
			do shell script cmd
			set itemsConverted to (itemsConverted + 1)
		end if
	end if
end convertFile


[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: mkarau on Nov 22, '09 10:03:50PM
It's amazing that, in 2009, Apple continues to push it's non-standard/non-cross-platform extended file attributes and army of hidden meta-data dot-files.

Anyway, in my quest to share data from webloc files with colleagues on PCs, using DropBox, I found this post and the follow-up comments very useful. Below is a script that suits my needs:
  1. Converts .webloc to .url and generates .url files recursively
  2. Deals with webloc data stored:
    • In Resource Forks.
    • As XML P-Lists.
    • As binary P-lists.
  3. Save Page titles in URL file and URL file name.
My script makes use of some handy *nix shell commands, including: find, basename, dirname, test, tr, sed, and grep.
Unfortunately, this script also makes use of Apple's Dev Tools scripts: DeRez and plutil.

Here is how I run the script to recursively find all webloc files and overwrite existing URL files:
$ find . -iname *.webloc -exec ~/ConvertWeblocToURL.sh -y \{\} \;

To not overwrite existing URL file (handy for cron or periodic jobs):
$ find . -iname *.webloc -exec ~/ConvertWeblocToURL.sh -n \{\} \;

Source of "ConvertWeblocToURL.sh":

#!/bin/bash

if [[ $# -eq 2 ]] ; then
	OVERWRITE_FLAG="${1}"
	INPUT_FILE_NAME="${2}"
	RESOURCE_FORK="${INPUT_FILE_NAME}/..namedfork/rsrc"
	BASE=`basename -s ".webloc" "${INPUT_FILE_NAME}"`
	DIR=`dirname "${INPUT_FILE_NAME}"`
	URL_FILE_NAME="${DIR}/${BASE}.url"
	FILE_FORMAT_ERROR=0

	if [[ ( -e "${URL_FILE_NAME}" ) && ( "${OVERWRITE_FLAG}" != "-y" ) ]] ; then
        	echo "Not Overwriting Existing file: "${URL_FILE_NAME}""
	else
        	# Check to see if Resource Fork has size != 0
        	if test -s "${RESOURCE_FORK}" ; then
                	# echo "I have a fork and need de-forking"
                	URL=`DeRez -e -only 'url ' "$INPUT_FILE_NAME" | grep '\/\* .* \*\/' | sed 's/^.*\/\* //;s/ \*\/$//' | tr -d '\n'`
        	else
                	# echo "I have NO fork but need XML parsing."
                	URL=`cat "${INPUT_FILE_NAME}" | grep -i '<string>.*<\/string>' | sed 's/^.*<string>//;s/<\/string>$//'`
                	# If URL initially comes back blank, then good chance the webloc is binary plist.
                	if [[ -z "${URL}" ]] ; then
                        	# Convert binary plist to XML and try again
                        	plutil -convert xml1 "${INPUT_FILE}"
                        	URL=`cat "${INPUT_FILE_NAME}" | grep -i '<string>.*<\/string>' | sed 's/^.*<string>//;s/<\/string>$//'`
                        	if [[ -z "${URL}" ]] ; then
                                	FILE_FORMAT_ERROR=1
                        	fi
                	fi
        	fi                                                                                           
        	if [[ ${FILE_FORMAT_ERROR} -eq 0 ]] ; then
                	echo "[${BASE}]" > "${URL_FILE_NAME}"
                	echo "URL=${URL}" >> "${URL_FILE_NAME}"
                	echo "Creating file: "${URL_FILE_NAME}""
        	else
                	echo "ERROR. Unfamiliar webloc file format, "${BASE}".webloc"
        	fi
	fi
else
	echo " "
	echo "Incorrect Number of Arguments."
	echo " "
	echo "Usage: ConvertWeblocToURL.sh -[yn] filename.webloc"
	echo " "
	echo "-y	Overwrite existing URL files."
	echo "-n	Do not overwrite existing URL files."
	echo " "
	echo "This script always retains the original .webloc file."
	echo "If the original webloc is a binary P-List, it converts"
	echo "the webloc file to an XML P-list."
	echo ""
	echo "Requires Apple Developer Tools: plutil, DeRez."
fi
</code></pre>
     

[ Reply to This | # ]
Easy conversion of multiple Safari .webloc to PC .url files
Authored by: mkarau on Nov 23, '09 06:44:37AM
One note. One edit.
  1. Note: Worked perfectly with my VirtualBox machines, but a real-world WinXP install suffered from a Windows bug in processing the URL files. http://support.microsoft.com/kb/936881
  2. The Fix. Windows likes a final CarriageReturn+LineFeed at the end of the URL file. Once added and once WinXP has been "Hotfixed", all works smoothly. In the DropBox world, IE and Firefox on the PC will update the URL file with other details like icon and other meta-data. Thankfully, this does not break the link functionality on the Mac.
    
            	if [[ ${FILE_FORMAT_ERROR} -eq 0 ]] ; then
                    	echo "[${BASE}]" > "${URL_FILE_NAME}"
                    	echo "URL=${URL}" >> "${URL_FILE_NAME}"
    
                    	echo "" >> "${URL_FILE_NAME}"
    
                    	echo "Creating file: "${URL_FILE_NAME}""
            	else
                    	echo "ERROR. Unfamiliar webloc file format, "${BASE}".webloc"
            	fi
    


[ Reply to This | # ]
Mountain Lion finally saves weblocs as plist, binary bplist, no more hidden .resources
Authored by: juanfal on Aug 31, '12 12:43:13AM

Mountain Lion finally saves weblocs as plist, binary bplist, no more hidden .resources

Although the .textclipping files are yet hidden resourcered files!



[ Reply to This | # ]