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

working with find command


  • Subject: working with find command
  • From: Die Fledermaus <email@hidden>
  • Date: Tue, 18 Aug 2015 16:51:05 -0400

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.

 _______________________________________________
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: Christopher Stone <email@hidden>
    • Re: working with find command
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: How do we Convert PICT to JPEG
  • Next by Date: Re: working with find command
  • Previous by thread: Re: AppleScript UI Guru Needed
  • Next by thread: Re: working with find command
  • Index(es):
    • Date
    • Thread