Re: working with find command
Re: working with find command
- Subject: Re: working with find command
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 19 Aug 2015 11:14:26 +0200
Le 19/08/2015 à 00:30, Deivy Petrescu < email@hidden> a écrit :
What is wrong with:
set mypath to "/Users/ifbell/Desktop/processedvid/source.mp4" alias mypath
?
You can enclose the alias by a “try” block.
Sorry, set mypath to Posix file ( "/Users/ifbell/Desktop/processedvid/source.mp4”) as string alias mypath Thanks to Chris (Stone) for (nicely) pointing it out to me.
If I make no error, the asker already posted the question in macScripter and in his thread it appeared that in the instruction:
if exists POSIX file mypath as alias then
mypath is an HFS+ path so the instruction fails because POSIX file "a:neat:hfs+:path:to:an:existing:file" returns file ":a:neat:hfs+:path:to:an:existing:file" which doesn't exists so the conversion as alias fails.
Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) mercredi 19 août 2015 11:13:48
|
_______________________________________________
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