Re: Make an internet location file with AppleScript?
Re: Make an internet location file with AppleScript?
- Subject: Re: Make an internet location file with AppleScript?
- From: Luther Fuller <email@hidden>
- Date: Thu, 9 Oct 2008 18:35:45 -0500
On Oct 9, 2008, at 5:37 PM, Joe wrote:
Is it possible to script the creation of an internet location file
from text in an AppleScript variable?
Dragging text of a URL from almost any application results in a file
ending with .inetloc. Can I script that?
I use this code to create an internet location file ...
set linkedFolder to <an_alias_to_a_folder>
...
set outerFolder to <an_alias_to_another_folder>
URL of linkedFolder
make new internet location file at outerFolder to (the result) with
properties {name:<name_of_file>}
set (extension hidden of the result) to true
The internet location file is placed in a folder which appears in the
dock as a menu. The extension of the internet location file
is .fileloc. (The original code used 'alias file', but that caused sub-
menus having sub-menus with sub-menus. It looked very ugly!) I don't
know what your goal is, but this may point you in the right direction.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden