• 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: working with find command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: working with find command


  • Subject: Re: working with find command
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 18 Aug 2015 17:10:00 -0400

> On Aug 18, 2015, at 16:51 , Die Fledermaus <email@hidden> wrote:
>
> I am trying to get this to work
>
> set mypath to "/Users/ifbell/Desktop/processedvid/source.mp4"
>
> set status1 to do shell script "[ -f " & quoted form of mypath & " ] && echo yes1 || echo no1" as text
> log status1
>
> I only get the output no1 no matter whether the file exists or not.  Is this just a fools errand to make this work?
>
> I am unable to get this command to work if exists POSIX file mypath as alias then
>
> which is why I am trying the script route.
> _______________________________________________


What is wrong with:

set mypath to "/Users/ifbell/Desktop/processedvid/source.mp4"
alias mypath


?


You can enclose the alias by a “try” block.


Deivy Petrescu
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


  • Follow-Ups:
    • Re: working with find command
      • From: Deivy Petrescu <email@hidden>
    • Re: working with find command
      • From: Stan Cleveland <email@hidden>
References: 
 >working with find command (From: Die Fledermaus <email@hidden>)

  • Prev by Date: working with find command
  • Next by Date: Re: working with find command
  • Previous by thread: working with find command
  • Next by thread: Re: working with find command
  • Index(es):
    • Date
    • Thread