• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make an internet location file with AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Make an internet location file with AppleScript? (From: Joe <email@hidden>)

  • Prev by Date: Re: AppleScript broken in 10.5.4
  • Next by Date: Re: AppleScript broken in 10.5.4
  • Previous by thread: Make an internet location file with AppleScript?
  • Next by thread: Trying to write a logon script that accesses an SMB share
  • Index(es):
    • Date
    • Thread