Re: working with find command
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