• 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: Invisibles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisibles


  • Subject: Re: Invisibles
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 13 Oct 2009 17:58:23 -0500

This, apparently, is the work-around I have to use. It seems that while the Finder errors on paths ending with an invisible item, it isn't bothered by paths containing an invisible folder as long as it's not the last item. This is what I tried with success ...

set selfRef to (path to me)
tell application "Finder"
set locContainer to (container of selfRef) as alias
set invisPath to (locContainer as text) & ".invisibleFolder:Untitled.rtf"
end tell
try
tell application "Finder"
set aliasFileAlias to invisPath as alias
(original item of aliasFileAlias) as alias -- THIS WORKS
end tell
on error
display dialog "Error"
end try

On Oct 13, 2009, at 2:49 PM, Luther Fuller wrote:

The Finder cannot do this ...

set orgItem to (original item of aliasFileAlias) -- ERRORS HERE

and System Events doesn't know about 'alias file' or 'original item', so is no help.
I looked at the 'GetFileInfo' man page, but that's no help either.

Anyone know how to get the original item of an invisible alias file?

Without making it visible! Which, I suppose, will be the work-around.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Invisibles
      • From: Luther Fuller <email@hidden>
    • Re: Invisibles
      • From: Paul Berkowitz <email@hidden>
References: 
 >Invisibles (From: Luther Fuller <email@hidden>)
 >Re: Invisibles (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: So where did «class bmrk» come from?
  • Next by Date: RE: Turning Off Auto-correcting In TextEdit
  • Previous by thread: Re: Invisibles
  • Next by thread: Re: Invisibles
  • Index(es):
    • Date
    • Thread