• 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: Internet Shortcut _ Urgent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet Shortcut _ Urgent


  • Subject: Re: Internet Shortcut _ Urgent
  • From: Rob Stott <email@hidden>
  • Date: Wed, 10 Apr 2002 15:13:15 +0000
  • Wheresrob: AtWork

On 10/4/02 10:43 pm, "Queen Ann" <email@hidden> wrote:

> Hi all,
>
> This is my first question to this mailing list.
> The question is :
> Hi,
> How do I make a script which will create an Internet Shortcut of Internet
> Explorer in my desktop?


There's probably a much more elegant way of doing this, but the following
method worked fine for me...

tell application "Finder"
set thePathToTheDesktop to path to the desktop
set theFile to (thePathToTheDesktop & "theurl.url") as text
try
close access file theFile
end try
open for access file theFile with write permission
write "[InternetShortcut]
URL=http://www.yahoo.com/
" to file theFile
close access file theFile
set the file type of file theFile to "LINK"
set the creator type of file theFile to "MSIE"
end tell

Good luck!
R.



--

Rob Stott
Artwork Designer
Humbrol Ltd / Airfix
Marfleet
Kingston upon Hull
England
HU9 5NE

Tel: +44 (0) 1482 701191 ext 6691
Mobile: +44 (0) 7881 811533
Fax: +44 (0) 1482 712908
ICQ No: 148381812

"...its a small world, but I wouldn9t want to paint it."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Internet Shortcut _ Urgent
      • From: "Queen Ann" <email@hidden>
References: 
 >Internet Shortcut _ Urgent (From: "Queen Ann" <email@hidden>)

  • Prev by Date: Re: Unique Items in a text file
  • Next by Date: Finder got an error:
  • Previous by thread: Re: Internet Shortcut _ Urgent
  • Next by thread: Re: Internet Shortcut _ Urgent
  • Index(es):
    • Date
    • Thread