Answer the question
In order to leave comments, you need to log in
How to make symlinks (symlink) in Mac OS X?
Continuing the topic of Chrome synchronization started in this question.
The situation is very strange: by making symlinks to files (Bookmarks, Cookies, Last Tabs) from the Dropbox folder and placing them in the Chrome profile, I was faced with the fact that Chrome simply replaced them with its own files (how much I understand symlinks, he was supposed to replace not them, but the files they refer to).
I'm confused, because Based on this, it turns out that symlinks can be safely made only on folders. So the question is, am I doing something wrong, is Mac OS X doing something wrong, or is Chrome doing something wrong?
Yes, I make symlinks using this Applescript
on run <br/>
tell application "Finder" to set sel to selection <br/>
open sel <br/>
end run <br/>
on open the_files <br/>
repeat with i from 1 to (count the_files) <br/>
try <br/>
set posix_path to POSIX path of (item i of the_files as alias) <br/>
if posix_path ends with "/" then set posix_path to ¬ <br/>
text 1 thru -2 of posix_path <br/>
try <br/>
do shell script "ln -s " & quoted form of posix_path ¬ <br/>
& " " & quoted form of (posix_path & ".sym") <br/>
on error <br/>
try <br/>
do shell script "ln -s " & quoted form of posix_path ¬ <br/>
& " " & quoted form of (posix_path & ".sym") with administrator privileges <br/>
end try <br/>
end try <br/>
end try <br/>
end repeat <br/>
end open
Answer the question
In order to leave comments, you need to log in
It's true. Thanks, I'll try.
But still, it's very interesting why symlinks are replaced by chrome (I'm afraid that I just did something wrong)?
In general, I did it in the console, put it in the same way and replaced them with chrome. Now I will make hardlinks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question