• 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: path of a Finder item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path of a Finder item


  • Subject: Re: path of a Finder item
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Thu, 23 Mar 2017 10:18:11 +0900


On Mar 23, 2017, at 9:16, Christopher Stone <email@hidden> wrote:

On Mar 22, 2017, at 07:09, Jean-Christophe Helary <email@hidden> wrote:
So basically I got the thing right from the start *except* for that right ? :-) I am *so* getting better at AS everyday...

Hey Jean-Christophe,

Good morning Chris,

It's a good feeling when that starts to happen.  :)

Yeah, it was a bit tongue-in-cheeky, plus I'm probably going to forget all that 6 months from now...

# Task: CD to Front Finder Window's Directory.

tell application "Finder" to set _dir to insertion location as alias

I should have looked at the task description first because I was getting a weird error right from this line when I realized that I was selecting a folder in a search window... Such folders don't seem to have containers so there is no alias for the insertion location... And there is no way to make a "cd" there...

I do have a "cd" thingy too and I'm using

set _folder to (the target of the front window) as alias

instead of "insertion location"

What are the differences between the two ?

# Task: Get posix path of selected item(s) or if none the front window and copy to clipboard.

I have one like this too, but it's extremely rudimentary. Basically it uses:

do script "echo " & _path & " | pbcopy"


Jean-Christophe 
 _______________________________________________
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: 
 >path of a Finder item (From: Jean-Christophe Helary <email@hidden>)
 >Re: path of a Finder item (From: Shane Stanley <email@hidden>)
 >Re: path of a Finder item (From: Jean-Christophe Helary <email@hidden>)
 >Re: path of a Finder item (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: path of a Finder item
  • Next by Date: Re: My script won't be running stably
  • Previous by thread: Re: path of a Finder item
  • Next by thread: Thoughts on Workflow acquisition?
  • Index(es):
    • Date
    • Thread