• 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: Alias's original item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias's original item


  • Subject: Re: Alias's original item
  • From: John Delacour <email@hidden>
  • Date: Fri, 20 Jun 2003 22:47:03 +0100
  • Mac-eudora-version: 6.0a23

At 2:25 pm -0500 19/6/03, Wallace, William wrote:

Does anybody know of a way I can use applescript (either on its own or via a
3rd party scriptable utility or osax) to examine an alias (which will most
likely be pointing to a file on a network server) and get the path to its
original item *WITHOUT* having to mount the remote volume upon which the
original resides?

The information you need will be contained in the result of a shell script like this:

/Developer/Tools/./DeRez ~/Library/Favorites/HTML\ 4.0 -only 'alis'

But before Emmanuel rushes in to give the REAL answer, here it is:

* SATIMAGE OSAX *

I have an alias file in Favorites pointing to the about.html in HTML 4.0 site. Here's how I get the path of the original:


set f to "" & (path to "cusr") & "Library:Favorites:HTML 4.0"
load resource 0 type "alis" from file f

--> alias "dx:Users:jd:Documents:tut:HTML:html 4.0:about.html"

JD




.
_______________________________________________
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.

References: 
 >Alias's original item (From: "Wallace, William" <email@hidden>)

  • Prev by Date: GUI Scripting: accessing menus causes error
  • Next by Date: Why so few OSX Additions?
  • Previous by thread: Alias's original item
  • Next by thread: Re: Alias's original item
  • Index(es):
    • Date
    • Thread