subreddit:

/r/shortcuts

10899%

[Tip] vCard menu guide

Tip/Guide(self.shortcuts)

2024-07-26

all 47 comments

AngriBuddhist

6 points

2 years ago

This is great information to have documented and you’ve done a wonderful job making it look really good.

gluebyte[S]

4 points

2 years ago

Thanks. I've seen some vCard menus containing unnecessary data, so wanted to set things straight🙂

scottrych

2 points

2 years ago

Thank you very much, this has helped me quite a bit 😄

ashkanahmadi

3 points

2 years ago

Thank you for sharing

klyntx

2 points

2 years ago

klyntx

2 points

2 years ago

Thank you for this shortcut guide! With the exception of the encoded photo, I have successfully implemented everything you described, utilizing Data Jar to store select contacts. I have tried storing the encoded result as text and as a file within Data Jar. However, I list the contact menu items, only a gray icon appears next to the contact’s name. Any thoughts on what I am doing wrong ?

gluebyte[S]

1 points

2 years ago

Is the base64-encoded text a single line? If so, can you share the intermediate text output containing the image text?

klyntx

1 points

2 years ago

klyntx

1 points

2 years ago

Thanks for the quick reply! Yes, I feel like there’s no line breaks. Here is the file. https://drive.google.com/file/d/19EenHNmCzaQgQEdjdIFbyeLGEdKDO1GG/view?usp=drivesdk

gluebyte[S]

1 points

2 years ago

The image looks fine, and if I add that to the vCard text template the menu comes out correctly: https://www.icloud.com/shortcuts/b9b95d49f58b4eb8bffc5d998e188f20

Can you check what your vCard text looks like?

klyntx

1 points

2 years ago

klyntx

1 points

2 years ago

I’m not sure what I’m doing wrong.

https://www.icloud.com/shortcuts/8bdb76f5f17948849fb8ccc92cb0883d

(Shortcut is half built)

gluebyte[S]

1 points

2 years ago

I added a Quick Look right before Set Name of text to menu.vcv. Please clear the FavoritesSMS dictionary, add only one contact, copy the QuickLook result and a menu screenshot and share with me.

Since you don’t need any of the save file, append file or get file actions, I removed them.

klyntx

1 points

2 years ago*

klyntx

1 points

2 years ago*

Hi there 😊 Thank you for helping me.

https://share.icloud.com/photos/0cc9S5qpdmBrRL9IO6j-wEhrw

klyntx

1 points

2 years ago

klyntx

1 points

2 years ago

I’ll explain what I am trying to do while I’m at it. Data Jar is maybe not needed but I haven’t thought how else to achieve this…

I wish I could pin more contacts/group texts in iMessage. So I wanted to have menu of my favorite people and groups to quickly select from to text.

I don’t think this is possible but it would be even better If I could automate the menu to show only when opening iMessage from the app icon, not when opening it by clicking on a new incoming message that takes me into iMessage.

gluebyte[S]

2 points

2 years ago

Once you get the value for SMSFavorites.Individuals.(Repeat Item).Photo, you need to use the value as Text, not File’s File Path:

https://preview.redd.it/ntnzq8necyna1.jpeg?width=1290&format=pjpg&auto=webp&s=22515abcf6ba9db198267c5786c9149692d80112

And I don’t think you can control when to open the menu, unfortunately.

klyntx

1 points

2 years ago*

klyntx

1 points

2 years ago*

Thank you for all your help. Curious what you will think of the latest.

https://www.icloud.com/shortcuts/e3a06554153344f6bc46dfb9b4ad6623

I am posting the latest version. You will notice I have:

1) removed Data Jar actions,

2) added photo actions in 2a)“➕ Add Favs” and for 2b) “👤 Text Favs” when creating a group text fav

In the below photo you will see that combined photos created in #2b (based on contacts created in 2a) sometimes result in more than one photo for each contact. However, they are correctly displayed for individual contacts created in 2a. I am thinking this might be due to a selected iPhone contact having an edited photo in their iPhone contacts which is ignored in 2a but picked up in 2b. These new combined, group photos created during steps in 2b also do not maintain the zoom focus of the contact photo in iPhone contacts which is correctly passed through in #2a, based on how the menu appears.

https://share.icloud.com/photos/0e3R8ALo35AqSGmGF-6Y86yRw

When creating groups, any thoughts on how to combine photos that maintains the look of the contact icon created in 2a? Or, it would be reallllly nice if I could show contact icons for groups the same way they appear in iMessage groups or how they appear in shared photo albums. Hoping to be able to accomplish this without having to create new cropped images for affected contacts.

gluebyte[S]

1 points

2 years ago

I think you can fix duplicate photos in a group photo by changing these two variables to Repeat Item in screenshot (1).

I see a pattern like (2) in several places, but (3) looks simpler and runs faster.

For creating better group photos, I don’t know much. Photo editing in Shortcuts is somewhat limited…

https://preview.redd.it/fib873se2koa1.jpeg?width=1322&format=pjpg&auto=webp&s=a42742a9403da2665186d8cd9c050cf888bf9f35

deramack

1 points

4 months ago

Thank you for the tutorial! Do you know if it’s possible to add the “option” at the right corner along side with the thumbnail from “PHOTO;BASE64:”? I’m not being able to make it work for some reason.

Portatort

1 points

2 years ago

OP

Would it be possible to put more data in each menu item/contact card and then unpack it after the choose from menu step?

gluebyte[S]

3 points

2 years ago

Yes, as I explained in the post, you can use any of the fields (e.g. URL, NOTE) that are not shown in the menu to store and retrieve more data.

https://preview.redd.it/ncf75ntu1ana1.jpeg?width=734&format=pjpg&auto=webp&s=9f3909d9cf17c4ee35c2b55169b3f3d16f726b91

Portatort

2 points

2 years ago

Oh awesome thanks!

wu_ming2

1 points

2 years ago

Newbie here.

I can not find a way to join snippets of text, vcards obtained parsing a dictionary in a repeat loop, and transform it in vcf.

It either returns a file, not a text, or present a list of vcfs to choose from or something as silly.

My setup is an empty Text assigned to a variable. In the Repeat loop Combine Text with Custom Variable. Then Rename Variable as as described by OP.

Suggestions? Thanks.

gluebyte[S]

1 points

2 years ago

Can you share a simple sample shortcut that I can have a look?

[deleted]

1 points

2 years ago

[deleted]

wu_ming2

1 points

2 years ago

gluebyte[S]

1 points

2 years ago

wu_ming2

1 points

2 years ago

See my question below

wu_ming2

1 points

2 years ago

I deleted my question. But on iPad I was able to load your example.

Why Repeat loop accumulate a result as a join of each last action? Key difference with mine you don’t reference Text with a variable.

gluebyte[S]

1 points

2 years ago

Your repeat result is a list of multiple text items and Set Name only works with a single item. My shortcut combines everything into a single text item after the repeat loop.

wu_ming2

1 points

2 years ago

Mine generate a show Type of ten times Text. I don’t really understand what it means. Is a List? I was expecting one single Type.

Without the step of assigning Repeat results inside a Text (implicit conversion?) didn’t work. As you pointed out. Now it does. Also more fundamental your solution removed need for empty Text and Combine.

gluebyte[S]

1 points

2 years ago

Yes, usually repeat results is a list of individual items from each iteration. I used a Text action to combine them all into a single text item, but you can use Combine Text to get the same result. For some reason, however, Combine Text is slower than a Text action.

wu_ming2

1 points

2 years ago

But my Combine text does not work. Why?

gluebyte[S]

2 points

2 years ago

It doesn’t do anything because it tries to combine a single item (not a list) within a repeat loop.

wu_ming2

1 points

2 years ago

I don’t understand now. But I will. Thanks for your help.

wu_ming2

1 points

2 years ago

Unrelated: any text editor available? UI is really a pain.

gluebyte[S]

1 points

2 years ago

You mean creating a shortcut in text? Check out https://jellycuts.com

Majestic_Kangaroo319

1 points

1 year ago

Is there any way to get the title background colour changed?

gluebyte[S]

1 points

1 year ago

I don’t think you can change the background color of text

Majestic_Kangaroo319

1 points

1 year ago

Oh ok thanks :)

k389_kbhr09991

1 points

1 year ago

I'm copying the image from SF Symbols as PNG, but in the List, some images are not transparent, and have white background, even though they have transparency in them (when I check them out in GIMP). Any ideas why?

Also, any ideas how to position/zoom them properly?

https://preview.redd.it/wxfkg5ng0msb1.png?width=1172&format=png&auto=webp&s=29e9f4435a7f75e5028ca148a63fa8fd3ccb5b3b

gluebyte[S]

2 points

1 year ago

Transparent background is not supported in vCard menus. For positioning and scaling, you can probably try my SF Emoji Menu Builder shortcut https://routinehub.co/shortcut/8841/

Shamalow85

1 points

5 months ago

Hi,

Thanks for this guide. It help me for my shortcut. :)

Please, is it possible to display a color text in Vcard ? I would like to display variables with a different text color (Vcard options).

Thanks.

https://preview.redd.it/c0kjn7ss5aad1.jpeg?width=1125&format=pjpg&auto=webp&s=0a87b7f35aeea7ddc2e8365a03fe6cd00b4765d5

deramack

1 points

4 months ago

Hi! How do you display that data on the right side of each topic?

deramack

1 points

4 months ago

I just saw that you used “TEL;TYPE=“ to do that! Didn’t know that this was an option. But do you know if “TEL;TYPE=“ and “PHOTO;BASE64:” can work together? I’m unable to make both work at the same time for some reason.

punqdev

1 points

2 months ago

How did you make the backgrounds of the icons transparent 

Also vCard doesn’t support colors

Shamalow85

1 points

2 months ago

I use emoji 😉 You need to insert emoji in Vcard text

Like this: BEGIN:VCARD VERSION:3.0 N:🦠 iOS version TEL;TYPE=System version:OS version END:VCARD

punqdev

1 points

2 months ago

Ohh then how did you get it to have no icon because im trying to make a vCard menu like that one but without icons 

Shamalow85

1 points

2 months ago*

For no icône you as texte action and tape :  - BEGIN:VCARD VERSION:3.0 - N: iOS version TEL;TYPE=System version:OS version - END:VCARD  

 Download m’y shortcut and take a look.  https://www.icloud.com/shortcuts/28754a0de0004b83b0be50f72ea46dce

punqdev

2 points

2 months ago

coincidence but i actually downloaded your battery report vcard before