• 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: shell script how to get current window path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell script how to get current window path


  • Subject: Re: shell script how to get current window path
  • From: "Quentin Arnault" <email@hidden>
  • Date: Tue, 25 Nov 2008 18:43:50 +0100

Hi,

Thanks a lot, it works.

Best regards,
Quentin ARNAULT


As a result, something along these lines should be more effective:

  on run
      tell application "Finder" to get target of Finder window 1 as alias
      set the_path to POSIX path of result
      do shell script "cd " & quoted form of the_path & "; make"
  end run

HTH,
Axel _______________________________________________

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

 _______________________________________________
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: 
 >Fwd: shell script how to get current window path (From: "Quentin Arnault" <email@hidden>)
 >Re: shell script how to get current window path (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: shell script how to get current window path
  • Next by Date: Re: AppleScript-Users Digest, Vol 5, Issue 627
  • Previous by thread: Re: shell script how to get current window path
  • Next by thread: Re: AppleScript-Users Digest, Vol 5, Issue 627
  • Index(es):
    • Date
    • Thread