Applescript | Photos | SlideShow - applescript

How to I start a slideshow with applescript?
tell application "Photos"
start slideshow using folder "Monday"
end tell
This dosen't work

From the Photos dictionary:
folder (noun), pl folders A folder. A container that holds albums and
other folders, but not media items
start slideshow (verb) Display an ad-hoc slide show from a list of media items, an album, a folder, or a moment (from Photos Suite)
Although the description of the command start slideshow suggests that you can display a slideshow from a folder, it doesn't work.
You have to get the list of media items of an album in a folder.
tell application "Photos"
set mediaItems to media items of album "myAlbum" of folder "Monday"
start slideshow using mediaItems
end tell

Related

some image files cannot be modified on Android Q

I have one image editor app, which can modify image files. On Android 10, it calls Intent.ACTION_OPEN_DOCUMENT to show image files on the phone, and let user to select one to edit.The problem is some image files cannot be modified, when they are modified , the app exits automatically. These image files seem to be other apps' private images or system images. Is there any way to hide these image files when Intent.ACTION_OPEN_DOCUMENT is called?

How to save converted images by automator to the same folder?

I use an Automator service to convert images to pdf documents. Unfortunately, this workflow can only save the converted files to a specific folder instead of converting images then saving the results in the same folder
An image of the workflow that I'm currently using

InDesign Script for importing idml to indd document

I am using InDesign Server and a soap based application to communicate through the server.
I am able to get all fields of form used in indd document and also able to replace its text/value.
Now, I am looking to get all images used in indd doc and provide upload images options at my application and able to replace the images by user selected images. Can anyone provide script for identify and replace the images.
Secondly, for backward compatibility I have idml of an indd doc. Now how to import or open this idml and convert it to indd doc through script.
Thirdly, how to convert pdf into indd doc.
Please help me with these scripts.
To an IDML file into an .indd file, simply open it and save it
set theIDMLFile to "Macintosh HD:Users:me:Desktop:someidmlfile.idml"
tell application "InDesignServer"
set convertedIDMLDoc to open alias theIDMLFile
tell convertedIDMLDoc
save to ((characters 1 thru -6 of theIDMLFile) & ".indd") as string
end tell
end tell

uploadify not attaching image

I'm working on a pagetype with a Imagedataobjectmanager. In slide show, files getting uploaded in CMS area.
The problem I'm having is, in the uploadify popup, when you upload a file, it hits 100%, and disappears. The file has been uploaded to the assets/uploads folder but it doesn't attach.
One mediocre fix is to upload in the File & Images to the right folder, go to your page and import them, however when you do that, it moves the selected files into the assets/Uploads folder, but it does attach them.
Changed the permission of the folder to 777, no luck. But surprosingly, file & images attaches the photos into the same folder
Thanks

How to get external images into dreamweaver panel

my question is incredibly simple yet I haven't been able to find an answer online. I made a small image in photoshop and am trying to incorporate it in my current website. I don't know how to get the image into dreamweaver into the image folder in the dreamweaver panel.
You can copy the image into the image directory of your root folder and simply add the markup where you want to add the image.
<img src = "[your image link]" />
Or simply add the images using the files panel- Insert->Images->Select your image then press ok.
try the following
1- ctrl + Alt + I and choose your image from the dialog
2- copy manually the image you created to the website directory on your hard drive
hope this hepls!
Your image folder should be stored locally on your machine in your site-root folder.
In Photoshop: Save for Web Devices, Navigate to the Root Folder where your site is stored, Open Image Folder and Save Image in that location.
In Dreamweaver: Go to Files Panel, hit refresh button and the image should now appear in the images folder.
The easiest way to do this by far is too put your cursor on the part of the page you'd like you picture to reside.
Then using the top menus click "Insert" and then "Image", once you have done this you'll be able to find your image on your local computer or network and you will be prompted to save it to your site with the site directory already up - then just choose where to save your file.
It's best practice to save all images into the images folder.
Hope that helps!

Resources